Type Here to Get Search Results !

class-piki-ads

⬇ Scroll down to view content ⬇ ⬇ Scroll down to view content ⬇

ads

Important Git Commands

‎Important Git Commands 

  1. git --version
    view git version
  2. git config --global --list
    view configuration
  3. git config --global user.name "username"
    user name configuration
  4. git config --global user.email "usermail"
    user email configuration
  5. git config --global alias.shortcmd "gitcommand"
    set alias for long git command
  6. git config --global -e
    edit git global configuration in text editor
  7. git init
    initialise to git local repository
  8. git add .
    add all files to git
  9. git commit -m "message"
    commit files to git
  10. git remote add origin remote repository URL
    add remote repository url
  11. git remote -v
    view remote repository
  12. git push origin master
    push local master branch repository to GitHub website
  13. git status
    view git status
  14. git log
    view git logs
  15. git log pretty=online
    view git logs
  16. git clone clone repository URL
    clone github repository local folder
  17. git branch newBranchName
    create new branch
  18. git checkout newBranchName
    change to newbranch repository
  19. git push origin newBranchName
    push new branch in github
  20. git checkout master
    change to master branch repository
  21. git merge newBranchName
    merge newbranch in master branch
  22. git branch -v
    view all branches
  23. git branch -D newBranchName
    delete new branch in locally
  24. git push origin --delete newBranchName
    delete new branch in github website
  25. git diff --cached

Post a Comment

1 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

Top Post Ad

Below Post Ad

Ads Area