Setting Up | Git Repos | Visual Studio and Bitbucket
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)
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)