Created
March 1, 2014 20:58
-
-
Save renatomattos2912/9297174 to your computer and use it in GitHub Desktop.
Git comands
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 rm -r --cached . | |
git add . | |
git commit -m "text" | |
git push origin <branch> | |
git chekout <branch> | |
// register a user on git | |
git config --global user.name "Your Name" | |
git config --global user.email [email protected] | |
git commit --amend --reset-author | |
// Tags | |
git tag v1.4 | |
git tag -a v1.4 -m 'my version 1.4' | |
git push origin --tags | |
git remote add origin https://github.com/user/repo.git | |
# Set a new remote | |
// add a repository | |
git remote -v | |
# Verify new remote | |
# origin https://github.com/user/repo.git (fetch) | |
# origin https://github.com/user/repo.git (push) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment