Skip to content

Instantly share code, notes, and snippets.

@tomasoak
Last active July 27, 2021 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomasoak/f53d6e13f82ec1e40b6045876ea73deb to your computer and use it in GitHub Desktop.
Save tomasoak/f53d6e13f82ec1e40b6045876ea73deb to your computer and use it in GitHub Desktop.
Git Aliases
# This .gitconfig file will definitely help to increase your productivity
# It can be accessed through the Visual Studio Code, whithin your user folder, open the CMD and type: "code .gitconfig".
# You need to have the VSCode mapped in your Environment Variables
[user]
name = ____
email = ____@____
[color]
added = green
changed = yellow
untracked = red
[alias]
ci = commit
co = checkout
cm = checkout master
cb = checkout -b
st = status -sb
sf = show --name-only
unstage = reset HEAD --
undo = checkout --
rollback = reset --soft HEAD~1
rollfoward = commit -c ORIG_HEAD
conflicts = !git ls-files -u | cut -f 2 | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment