An Interest In:
Web News this Week
- April 20, 2024
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
December 30, 2021 11:34 am GMT
Original Link: https://dev.to/anitaparmar26/git-command-cheat-sheet-31ec
Git Command Cheat Sheet
Hello Dev,
We all know about Git but I want to share little bit about that, In daily base where I am using, it is basic cheat sheet need to all developers.
Lots of code conflict had been when we were working in a team to completed project. That time we decided to have one cheat sheet on our office wall above desk.
Git Clone:
git clone https://name-of-the-repository-link
Git New branch, list, deleting:
git branch git branch or git branch --listgit branch -d
Git Checkout:
git checkout (branch name)
Git Status Command for:
like current branch, commit, push or pull, files staged, unstaged or untracked, files created, modified or deleted
git status
Git Add:
git add git add -A (for everything)
Git Commit:
git commit -m "commit message
Git Push: for upload local repo content
git push git push --set-upstream git push -u origin
Git Pull: for git fetch from local repo which will merge branch
git pull
Git Merge: for merge branch to another
git checkout (branch name)git fetchgit merge
Thank you for reading.
Original Link: https://dev.to/anitaparmar26/git-command-cheat-sheet-31ec
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To