Skip to content

rohanbas95/GitCommands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Section2

Lectures Description
1. Git Commands
2. VIM Commands
3. Github Action

Git Commands

list of important git commands

  1. git init
  2. git status
  3. git add .
  4. git commit
  5. git commit -am "COMMIT_MSG_HERE"
  6. git log
  7. git pull

  1. git branch -l
  2. git branch -D BRANCH_NAME
  3. git checkout BRANCH_NAME
  4. git checkout -B BRANCH_NAME

  1. git stash
  2. git stash pop
  3. git stash push
  4. git stash list

  1. git merge BRANCH_NAME
  2. git cherry-pick COMMIT_SHA

  1. git pull --rebase
  2. git pull --no-rebase

  1. git reset --soft COMMIT_SHA
  2. git reset --hard COMMIT_SHA
  3. git push --force

Vim Commands

  1. gg -
  2. G -
  3. 5G -
  4. ff -
  5. p -
  6. dd -
  7. :w
  8. :q
  9. :!q
  10. :set number

vim has three modes

  1. command mode
  2. insert mode
  3. extended mode

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors