GitUsage.ipynb

martin880501

Uploaded on: Nov. 30, 2021, 5:23 a.m.
.python

How to remotely add files to a github repo?

  • Create repo in your github account
  • Follow the instrcutions after creating it
    • opening bit bash
    • cd to your directory
    • git init
    • git add yourfile
    • git commit -m "words...."
    • git branch -M master
    • git remote add origin your_repo_url
    • git push -u origin main(branch_name)

How to add code to repo

  • cd to your directory
  • git add your_file
  • git commit -m "words..,"
  • git branch -M master
  • git remote add name url
  • git push name -u master

Cloning a repo and add codes into it

  • git clone
  • manually add your coding files to the directory
  • git add your_code
  • git commit -m "words"
  • git push

Posted: Nov. 30, 2021, 5:23 a.m.

martin880501

1