Distributed Version Control - Creating a Remote Git Repository
Автор: Sean Murdock
Загружено: 2022-01-17
Просмотров: 559
Описание:
We discuss the difference between a remote and a local git repository, and the purpose for a remote repository. How to create a remote repository in Github is discussed. Then we go over the commands to add the remote to our local repository and push the code. Remember when creating a remote Github repository, don't check the boxes to create files, as this will conflict with your local files you have created.
git remote -v
Check if your repository has a remote, and show the url
git remote add origin __________
Add a remote to the local repository called origin with the url specified
git push -u origin main
Set the local branch to push to the remote branch with the same name, and push changes (includes new files) you have made
git pull
Pulls code that was changed on the remote but is not yet on your local
git add __________
Adds the filename specified for the next commit
git commit -m "__________________"
Creates a local commit with the message specified
git push
Pushes the changes you have made locally to the remote repository
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: