Last active
May 12, 2017 14:57
-
-
Save theWhiteFox/90764aa1f5f4f81b07d4 to your computer and use it in GitHub Desktop.
Git commands
This file contains 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
git init // Initialize | |
git add . // add all | |
git rm --cached name_of_file // gitignore file | |
git reset // unadds all files | |
git reset HEAD~1 // uncommit | |
git commit -m 'First commit' | |
git remote add origin "remote repository URL" | |
git remote -v // check remote | |
git pull origin master | |
git push origin master | |
git status | |
git rm -r "name-of-directory" or for all * | |
git rm "name-of-file" | |
git commit -m "Remove all" | |
git push origin master | |
git clone "HTTPS clone URL" | |
git clean -f // force | |
git rebase --abort // fatal: Could not open file .git/rebase-merge/done for reading: No such file or directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment