Giter VIP home page Giter VIP logo

git_config's Introduction

Git Bash

Step One

  • get gitbash: download from here install and open it
  • name: git config --global user.name "Biswajit Biswas"
  • email: git config --global user.email "[email protected]"
  • go to root directory: cd ~
  • create .ssh directory: mkdir .ssh
  • generate SSH Key: ssh-keygen -t rsa -C "[email protected]"
  • copy the SSH key from: id_rsa.pub

Step Two

  • go to your github account settings and click SSH and GPC keys
  • click new SSH key button
  • give it a title
  • paste the key that you copied from id_rsa.pub into the key input field.

Testing

  • connection: ssh -T [email protected] it will show your github user name (jfbiswajit)
  • config details: git config --global --list it will show you your all git config details

SSH settings (Optinal)

  Host github.com
  User [email protected]
  HostName ssh.github.com
  PreferredAuthentications publickey
  IdentityFile ~/.ssh/id_rsa
  Port 443

Create Alias (.gitconfig)

[user]
  name = Biswajit Biswas
  email = [email protected]

[alias]
  al = !git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ /
  st = status
  rs = !git reset --hard && git clean -fd
  cm = !git add . && git commit -m
  gtc = reset --merge
  sw = switch
  lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
  br = branch
	amd = !git add . && git commit --amend --no-edit
  pp = !git add . && git commit -m "\"feat: Quick updates and sync\"" && git push origin HEAD

[core]
  editor = nano
[init]
  defaultBranch = master

git_config's People

Contributors

jfbiswajit avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.