Last active
November 13, 2015 17:27
-
-
Save sahilseth/53c7ec6198c35de7b11d to your computer and use it in GitHub Desktop.
My list of git commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # clone | |
| git clone source | |
| # add changes to be committed | |
| git add . | |
| git commit -m "my message" | |
| git push | |
| # get a list of ignored files | |
| git ls-files --others -i --exclude-standard | |
| git ls-files --others -i --exclude-from=.git/info/exclude | |
| # remove all changes to code | |
| git stash | |
| # that was a mistake get all the changes back | |
| git stash pop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment