简体   繁体   中英

Git and Github. How to reuse files for a repository

I created a git folder on window and used it for my first commit to GitHub. I have now started using Mac. How do I go about editing my repository since I have the folder/readme file saved on windows. How do I recreate this on Mac.

You have to clone your repository on your mac, with the link provided in github.

Basically, you just need to do

git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY

(though your connections need to be configured, or you will be prompted username and password)

Alternatively you can also use the GitHub app for Mac .


When you want to make some changes, you can commit them and push them on the github repo, and then pull the changes on your windows repo (or inverse).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM