GitΒΆ
Git ConfigurationΒΆ
git configΒΆ
Exclude files permission from all local changes
Update git config
Change git default editor
Skip SSL C.AΒΆ
Skip unable to access https://your.host/your-git/your-repor.git/ SSL certificate problem: self signed certificate
Specified KeysΒΆ
Add github to your hosts ~/.ssh/config
store username passΒΆ
Git CommandsΒΆ
Git 3 level conceptΒΆ
git fetchΒΆ
git addΒΆ
Add file to stage except one
Add a new line at EOF
git cloneΒΆ
Clone and checkout simultaneously
Clone repo
git logΒΆ
Git log arguments
git log --pretty=oneline
git log --pretty=format:"%h - %an, %ar : %s"
git log --max-count 3
git log --oneline --max-count 5
git log --since="3 days ago"; (--since, --after, --until, --before)
git log --graph --oneline --decorate --all
git checkoutΒΆ
Checkout master branch
Create new branch and switch to it
Checkout via origin branch
Checkout over tag number
Check it up
Go to last 3 commit
git remoteΒΆ
Add new remote repository
Rename an existing repo
Get the list of the remote repository
git branchΒΆ
Create new branch
Rename a branch
Delete a branch
git switchΒΆ
Switch branch
Point head to last commit
git reset - git revertΒΆ
Git resetΒΆ
Git revertΒΆ
git tagΒΆ
git rebaseΒΆ
Reapply commits on top of another base tip
Assume the following history exists and the current branch is "topic":
A---B---C topic
/
D---E---F---G master
From this point, the result of either of the following commands:
git rebase master
git rebase master topic
would be:
A'--B'--C' topic
/
D---E---F---G master
Delete an old commit
Then use keyword drop inside the target commit hash and save the file
Note: the -f is a required parameter for this step
Rebase & Merge Conflict, step by step guidΒΆ
git merge vs git rebaseΒΆ
Checkout to main branch
Give it the last changes from main branch of remote repository
Check the branches and go to target branch
Give the last changes from main branch of local repository
NOTE: Git makes new temp branch and apply all changes to it until `git rebase --continue Apply changes and get status then add
Put temp branch changes to target-branch
Push to remove target-branch
NOTE: You should solve the merge conflict manually by your TE or IDE if you have
















