Setting Up | Git Repos | Visual Studio and Bitbucket

Опубликовано: 16 Ноябрь 2020
на канале: IndieRevo
8,338
66

In this video I show how to create a local repos in Visual Studio, a remote repos in BitBucket, and then how to push the local to the remote repos.

The URL for downloading Git is: https://git-scm.com/download/win

Key commands in the video are:

git init (to initialise the local git repos)
git add --all (to add files to the repos)
git commit -m "some text" (to commit the files and leave a message)
git remote add origin [url to remote repos] (point to a remote repos)
git pull origin master --allow-unrelated-histories (pull down from a repos)
git push -u origin master (push to a repos)

If you get an error relating to "failed to push", try the following command:

git push origin master --force

Other commands:

git checkout -b "name of branch" (checkout a branch with the name)
git push --set-upstream origin "name of branch" (if branch doesn't exist)


Смотрите видео Setting Up | Git Repos | Visual Studio and Bitbucket онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь IndieRevo 16 Ноябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 8,338 раз и оно понравилось 66 людям.