Git is the free and open source distributed version control system that's responsible for everything GitHub related that happens locally on your computer. This cheat sheet features the most important and commonly used Git commands for easy reference.
#INSTALLATION & GUIS GitHub for Windows: https://windows.github.com
GitHub for Mac: https://mac.github.com
For Linux and Solaris platforms, the latest release is available on the official Git web site. Git for All Platforms http://git-scm.com
Configuring user information used across all local repositories.
git config --global user.name “your_name”
git config --global user.email “your_email”
git clone repo_link
git init
git add .
git add [file_name]
git reset [file_name]
git commit -m “commit_message”
git diff
git diff --staged
git branch
git branch branch_name
git checkout branch_name
git merge branch_name
git log
git log [number]
say git log 5
git status
git remote add origin repo_url
git remote remove origin
git remote -v
git pull
git push origin branch_name
git fetch
Contribute to this project by sending pull request and by raising issue
- Copyright (C) 2021-2022 by CyberBoyAyush@Github, < https://github.com/CyberBoyAyush >.
Git Cheat Sheet is Free Documentation: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.