Add local folder to git
in operateCo-De with 10 comments

Add local folder to git

in operateCo-De with 10 comments
  1. cd to local folder , first init its as git

    git init
  2. add all to version control

    git add .
  3. do a local commit first

    git commit -m 'init commit'
  4. link to remote git repo

    git remote add origin https://github.com/*******.git
  5. do a pull to sync tow repo

    git pull origin master --allow-unrelated-histories
  6. push local to remote

    git push -u origin master
Comments are closed.