Thursday, March 18, 2021

Git Commands [Local Repository to Remote]

  1. Create a repository in GitHub
  2. Cd to the working directory folder you wanna commit eg Story
  3. git log : to check for previous commits   

[Push commit to GitHub]
  1.  git remote add origin [URL git directory] : create a remote
  2. git push -u origin master: push our local repository to remote repository

[if got edit files]
  1. git pull
  2. git push -u origin master: push our local repository to remote repository

No comments:

Post a Comment