Practical Git Commands

Practical Git Commands


Command Detail
- git init [project-name] init
- git clone [url] clone
- git config –list show config
- git config [–global] user.name “[name]” username
- git add [file1] [file2] add file
- git add [dir] add folder
- git rm [file1] [file2] remove file
- git mv [file-original] [file-renamed] rename file
- git commit -m [message] commit
- git commit [file1] [file2] … -m [message] commit specific files
- git commit -v commit with diff
- git log –stat show commit log
- git log –name-status show log with all modified files
- git log -5 –pretty –oneline show last 5 commits
- git pull update
- git revert revert commit
- git push push local to remote

Tags: Git Command Vistied:
Share: Twitter Facebook LinkedIn