Git on Windows 7 for Android in Eclipse: How do I use version-control on existing project?
How do I take my existing project in Eclipse on Windows for Android and put it inside a branch on a repository for Git? I also want to share this repository with my friend to help code. He already set up a Git repository and sent me the address and credentials. I just don't know how to go about this?
Once I get a cmd line for Git on Windows what do I have to do to add/clone this project to my friends repo or my own (then how do I share my repo with him?). I use Git with GitHub in Ubuntu (I didn't set it up) but I don't really know how to set this up.
I've already installed a plug-in egit and have had issues with that. I would like to use a separate interface from Eclipse for Git now.
Bones of the Question: How do I ge开发者_如何学Ct my existing Android project into a Git repository that IS NOT a plug in to Eclipse?
Download msysgit from http://code.google.com/p/msysgit/
Download TortiseGit https://tortoisegit.org/. If you're using private keys, make sure you select Plink instead of openssh. I've had problems with OpenSSH for Windows.
Add your private key, if you're using it, to Pageant (included with Tortise Git).
Clone your repository with Tortise Git.
Copy all your files into the new directory.
In the Tortise Git context menu, select Add.
Select All
Commit
Push
That would be the short instructions.
Also, if you're comfortable with the command line tools, msysgit includes Git Bash, which is kinda like using Git in Linux.
http://nathanj.github.com/gitguide/tour.html this is a nice tutorial on a gui version of git. in your case you would do a git clone from the existing url that your project is stored in or create a new repository if you havent set one up on github yet.
精彩评论