git init
git config --global user.name <your_user_name>
git config --global user.name "SudipC3"
git config --global user.email <your_mail>
git config --global user.email "s********@pm.me"
git clone <repo_url>
git clone --single-branch --branch <branch-name> <repository-url>
git clone git@github.com:cx0y/xlbr.git
git remote -v
git remote add origin <url>
git remote set-url origin <url>
git remote remove origin
git checkout -b <branch_name>
git checkout -b dev2
git branch -a
git checkout <branch_name>
git checkout dev2
git push origin --delete <remote_branch_name>
git push origin --delete dev2
git status
git diff
git diff --stat
git add .
git commit -m <your message>
git commit -m "update"
git push <remote> <branch>
git push origin main
git push --force
git push -f <remote (origin)> <branch(master)>
git push origin <branch_name(master)> --force
git push --force-with-lease
git fetch <remotename>
git pull origin <my_default_branch_name>
git log
git log origin/branch_name
git log origin/master
git log --oneline
git checkout <hash_of_commit>
git checkout -b <new_branch_name> <c3d88eaa1aa4e4d5f_hash>
(best way to be trouble free, when chacking previous updates)
git commit --amend -m <new_commit_message>
git reset <hash_of_commit>
git reset 9a9add8
git revert HEAD ~ x
x being a number. 1 going back one more
git revert HEAD ~ 1
git merge <marge_branch_name>
git merge dev2
git branch -d <branch_name>
git branch -d dev2a
git rebase -i HEAD~x
ssh-keygen -t rsa -b 4096 -C "your-mail@example.com"
$ eval "$(ssh-agent -s)"ssh-add ~/.ssh/id_rsaCopy your rsa.pub file ( path : ~/.ssh/ )
goto -> github profile > settings > SSH and GPG Keys ~ [paste public key]
ssh -T git@github.com
Enter passphrase for key '/root/.ssh/id_rsa':
Hi YourUserName! You've successfully authenticated, but GitHub does not provide shell access.
This project is released under the MIT License. See the LICENSE file for details.