GENERAL GIT COMMAND
Basic Git Workflow
1. Initialize a Git Repository
git init2. Stage Changes
git add <file> # Stage a specific file
git add . # Stage all changes in the current directory3. Commit Changes
git commit -m "Your commit message here"4. Push Changes to Remote Repository
git push origin <branch_name>5. Pull Changes from Remote Repository
6. Check Status
7. View Commit History
8. Create a New Branch
9. Switch Branches
10. Merge Branches
Additional Git Commands
1. Clone a Repository
2. Remove Files
3. Undo Changes
4. Configure Git
5. Inspect Changes
6. View Remote Repositories
7. Rename and Move Files
8. Amend the Last Commit
9. Create Tags
10. Checkout Specific Commit
11. Reset Changes
12. Fetch and Merge Remote Changes
13. Rebase Commits
14. Ignore Files
15. Show Differences with Previous Commit
Last updated