Use GitHub in command prompt

 GitHub commands



Clone repository to local machine

  •     Git clone <repo url>

get branch list

  •     git branch -a
  •     git branch

Change git branch

  •     git checkout <branch name>


Steps to add local files to git

  1. git add .
  2. git commit -m <"commit massage">
  3. git push

pull from master branch

    git pull origin master

push local repo to remote branch (git repo branch)

    git push origin <branch name>


No comments:

Post a Comment

Popular Posts