I had existing code I wanted to add to a repo
- Create repo at bitbucket
- Open command line to directory above where you want the local repo
- run: git clone https://yourusername@bitbucket.org/path-to-your-git.git
- this will output: “Cloning into ‘path-to-your-git’…
warning: You appear to have cloned an empty repository.” - Then copy your files into the newly created directory
- In Team Explorer see that you’re connected to the correct local repo
- Commit changes and push
Ensure you have a copy of .gtignore to avoid checking in visual studio files. See here for more info