Setting Up | Git Repos | Visual Studio and Bitbucket

Published: 16 November 2020
on channel: 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)


Watch video Setting Up | Git Repos | Visual Studio and Bitbucket online without registration, duration hours minute second in high quality. This video was added by user IndieRevo 16 November 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 8,338 once and liked it 66 people.