Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 659 Bytes

Git Commands.md

File metadata and controls

52 lines (42 loc) · 659 Bytes

Git Commands

  • Clone a repository
git clone <repo link>
  • Initialize the repository
git init
  • Update a repository
git pull
  • Add the copied files to the git
git add .
  • Commit a message
git commit -m "message"
  • View working tree status
git status
  • Upload the git to github
git push -u origin master --force
  • Looking at the commits
git log
git log --pretty=oneline
  • Searching for deleted file/ the commit ID when deleting an object
git log --diff-filter=D --summary
  • Checkout at a specific commit
git checkout <commit id>