Skip to content

Useful Git commands

Shamik edited this page Nov 20, 2023 · 11 revisions

Git Commands

Setting up default editor

git config --global core.editor "vim"

or

export GIT_EDITOR=vim

Git Credential Manager(GCM) for Linux

Installation

Setting up GCM cache for authentication

https://github.com/GitCredentialManager/git-credential-manager/blob/main/docs/credstores.md#gits-built-in-credential-cache

Checkout to a specific PR, in this example PR=42

git fetch origin pull/42/head:pr-42 switch to the pr git checkout pr-42 and then install it to check the code by pip install -e .

Clone this wiki locally