Reputation: 3
I'm trying to learn git.
My git repository is on Visual Studio Team Services. I code in visual studio. I use git bash.
I'd like to use git by the command line (I like to understand what is happening).
First I created a new git project on TFS from the web browser. I did setup ssh so I could do commands from git bash. It works.
When you create a git project in TFS, does it do the git init --bare on the server for you, or do you need to do it yourself?
If this is not done when you create the server, how do I do the git init -- bare on the server.
What I'd like to do is fairly standard I think: setup a Master branch on the server, people clone locally on their computer, when ready merge and push.
Thanks
Upvotes: 0
Views: 1667
Reputation: 29968
Yes, the repository has been initialized after you create it in VSTS/TFS, you just need to run "git clone ssh://[email protected]:22/_git/Repo" command from Git Bash after you configure the SSH correctly. And then you can commit and push changes.
Upvotes: 1