Skip to content

Instantly share code, notes, and snippets.

@renatomattos2912
Created March 1, 2014 20:58
Show Gist options
  • Save renatomattos2912/9297174 to your computer and use it in GitHub Desktop.
Save renatomattos2912/9297174 to your computer and use it in GitHub Desktop.
Git comands
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 you@example.com
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