Skip to content

Instantly share code, notes, and snippets.

@viswanath11
viswanath11 / git.howto.md
Created October 23, 2019 15:31 — forked from epcim/git.howto.md
git howto usage guide

Various GIT usage tutorials/examples

Configuration

git config core.trustctime false
git core.filemode false

git config user.name "Alice Bob"
git config user.email [email protected]
@viswanath11
viswanath11 / git.md
Created October 23, 2019 15:36 — forked from HendrixString/git.md
git cheat sheet

account

setup name and email
for a specific repository, navigate into it and type
git config user.name "your username"
git config user.email "[email protected]"
note add --global to make it global for new repositories

change your editor for commits
git config --global core.editor "pico"
get the remote repository url

@viswanath11
viswanath11 / git-commands
Created October 24, 2019 02:13 — forked from silversonicaxel/git-commands
GIT #git #gitflow
> the installed direction of my git
$ which git
> version of git
$ git --version
> Ignore list is a file in the base folder
.gitignore
@viswanath11
viswanath11 / GIT commands.md
Created October 24, 2019 02:18 — forked from ThomasTJdev/GIT commands.md
GIT commands

Fix last commit message

Made a typo or wrong description in a commit message? Run and edit:

git commit --amend

Add a file to latest commit

git commit --amend --reuse-message HEAD
#or