git

The articles in this section deal with git in bash. I prefer to use git in a terminal and not having an IDE in the way. However, the git concepts described here apply no matter if you use git with your IDE or in bash.

git bash enhancements

created onJune 22, 2022
last modified onJune 28, 2022
how to customize git in bash for a more comfortable and efficient working experience...

git configuration

created onJune 22, 2022
last modified onOctober 28, 2023
configuration of git after initial installation with settings for users, repos and system wide settings...

reverting changes in git

created onJune 22, 2022
last modified onJune 28, 2022
how to revert staged and unstaged changes while working with git...

viewing git commit history

created onJune 22, 2022
last modified onOctober 27, 2023
viewing the commit history with git log with custom formats for more information on less terminal real estate...

git branch operations

created onJune 22, 2022
last modified onJune 27, 2022
basic operations create a branch – git branch <new branch> checkout a branch – git checkout <branch> list local branches – git branch list remote branches – git git branch -r list local and remote branches – git branch -a delete a local branch – git branch -d <branch> delete a remote branch – git push origin -d <branch> create and checkout a branch in one go git checkout -b <new branch> connecting local branches to upstream git push -u origin new-branch -u is shorthand for --set-upstream...

archiving git repos

created onOctober 25, 2023
There are three ways for creating an archive from a git repo: git archive, git bundle, and plain tarballs....