richelbilderbeek / git

My favorite git commands

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git

Branch GitHub Actions
master check-links

My favorite git commands.

Setup

GNU/Linux

Install git from the command line:

sudo apt install git

Peregrine

git needs to be loaded:

module load git

Windows

Download and install git from https://git-scm.com/downloads.

Then start 'Git Bash' for a terminal.

General workflow

Clone this GitHub:

git clone https://github.com/richelbilderbeek/git

Update this GitHub:

git pull

Submit your change to this GitHub:

git add --all :/
git commit -m "Changed this"
git push

My setup

git config --global user.email "rjcbilderbeek@gmail.com"
git config --global user.name "richelbilderbeek"

On any new computer, I just run setup.sh.

Password once per ten hours

git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=36000'

Which issues are assigned to me?

Go to https://github.com/issues/assigned when logged in.

Remove editor asking for a prompt when merging

From here:

git config --global core.mergeoptions --no-edit

and

echo 'export GIT_MERGE_AUTOEDIT=no' >> /home/richel/.bashrc && . /home/richel/.bashrc

THIS IS A TEST

About

My favorite git commands

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%