Uploading a existing project from git to github. branch master
Автор: Billour Ou
Загружено: 2022-04-26
Просмотров: 64
Описание:
Github
After 2020, any new repository is created with the default branch main, not master. And you can rename existing repository default branch from " master" to "main".
The rest of this 2020 answer has been updated to use "master".
-----------------------------
IF on a Windows Operation system. Using Git Bash.
1. Open the file and using your mouse right click "Git Bash Here".
git init
2. Add all files on the Folder. Note " . " it's meaning "All files".
git add .
3.
git commit -m "first commit"
4. Note: "origin" it's meaning Github remote location address.
You also can use the commmand " git remote -v ", check your remote status. " git status".
git remote add origin [email protected]:[yourname]/XXXX.git
If you use "master", and you should have use it, it will change your branch.
git pull --rebase origin master
5. Push your project to the Github account space.
git push -u origin master
How to down load the Github Project to save on your local computer.
git pull origin master
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: