简体   繁体   中英

pushing project to a newly created repository

I've migrated from Eclipse to Android Studio. Now I have created a new repository in Visual Studio for the Android Studio (2.0 version) project. In Android Studio I have done the following :

  1. Enabled "Version Control Integration"
  2. Chose Git as the selected version control system (all the files' names turned red)
  3. Added all the folders in the project to staging(They are all green now)
  4. Now I'm a bit confused how do I link all of it to the repo I created? where do I place the visual studio url of the new repo ? will it automatically push it all to a branch that will be called 'master' ?

Try like this:

cd /path/to/project/
git init
git remote add origin yourgiturl
git push origin master

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM