Skip to content

Instantly share code, notes, and snippets.

@jzzdog
Last active October 19, 2021 07:14
Show Gist options
  • Save jzzdog/8a74689e9b945a333417 to your computer and use it in GitHub Desktop.
Save jzzdog/8a74689e9b945a333417 to your computer and use it in GitHub Desktop.
Git tooltips

Git installation

Ubuntu

$ sudo apt-get install git

Windows

install git from downloaded setup file. Add this block to config to ignore ssl verification erros or increase buffer

[http]
	sslVerify = false
	postBuffer = 524288000

Path to config in windows 7 you can find at C:\Users\username\.GITCONFIG or type git config http.sslVerify false

Global configuration

use this commants to update global configuration

$ git config --global --add user.name jzzdog
$ git config --global --add user.email [email protected]

check configuration

$ git config --global --list

Project commands

Use this commands to manage you project repository

project dir$ git init
$ git clone https://github.com/jzzdog/azcommunity.git
project dir$ git pull origin bootstrap
project dir$ git add .
project dir$ git commint -m "my commit options"
project dir$ git checkout .
project dir$ git status

refresh cached remote repositories list

git remote update origin --prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment