Skip to content

Instantly share code, notes, and snippets.

@wixaw
Last active November 21, 2019 09:03
Show Gist options
  • Save wixaw/8006936fd1b7f5727d569da73fe75c8f to your computer and use it in GitHub Desktop.
Save wixaw/8006936fd1b7f5727d569da73fe75c8f to your computer and use it in GitHub Desktop.
GIT Cheat Sheet

GIT Cheat Sheet

Config

vim /root/.gitconfig
[user]
	email = @.fr
	name = William VINCENT
[status]
  showUntrackedFiles = no
[color]
        diff = auto
	      status = auto
	      branch = auto
        interactive = auto
	      ui = auto
        pager = true

init

git init

Status

git status

Commit

git commit -m "init repo"

delete deleted files

git rm `git status | grep deleted | awk '{print $3}'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment