UCContributeToNordquipSousmsUsingGitShell - nordquip/sousms GitHub Wiki
- sousms developer
developer reads and writes nordquip/sousms (the main git repository)
- Git shell installed on developer's computer
- developer added to nordquip/sousms collaborators list
- Successful - developers changes successfully added to repostitory
- Unsuccessful - developers changes not in the repository
- start git shell
- cd to directory in which you would like to store your local copy of the repository
- git clone [email protected]:nordquip/sousms.git # create new local repo
System responds with clone statistics - cd sousms # cd to the new local repository
Here are some testing commands: - git pull # pull any new changes
System will probably report 'Already up to date' - git push # push any new changes (none) up to nordquip/sousms on github.com
- create a new file
- git add --dry-run .
Add any new files in this directory and any subdirs to the index. Shows what would be added, but does not do the add.
The index is the list of files in your local directory that are (or will be) also present in the github.com repository. - git pull # pull any new changes
System reports any changes pulled into local repo - git commit -a -m 'message describing your file addition'
System reports your file added to the index - git push
System reports changes made to the nordquip/sousms repo
Starting after step 6 above:
7. Edit or delete or rename an existing file
8. git pull
9. git commit -a -m 'description of changes'
10. git push
- git status
shows files present in your local directory that have not yet been committed, including new files that have not yet been added and committed. - git show <sha#>
<sha#> is the number git assigns when it does a commit. Shows the changes you committed with this commit. - git log
Shows the sha#, author, message, and commit time for each commit. - git log <filename>
shows this same information for only the commits involving the file you specify.