Git
Enumeration
Repository Status
git status
Repository Logs
git log
Check Commit
git show b73481bb823d2dfb49c44f4c1e6a7e11912ed8ae
Show all the branches in the repository
git branch -a
Show the commit history across multiple branches
git show-branch
Remote Repository
Check your remote URL
git remote -v
Remote URL to SSH
git remote set-url origin git@github.com:b0llull0s/AI-Maths.git
Branches
Fetch the changes to local
git fetch origin
Merge Branch
git merge <branch_name>
Delete Branch
git branch -D <branch_name>
Create and switch to a new branch
git checkout <branch_name>
In case you can to create a feature branch
git checkout -b feature-branch
Pull the latest changes
git pull origin dev
Switch to another branch
git switch <branch-name>
Push the changes
git push origin <branch_name>
Fetch changes to local
git fetch
Last updated