Black.Jack
Black.Jack

Reputation: 1957

Git and Android Studio nightmare Version Control

Yes i'm new in git, but as far as i can see it's a pain.

Assuming that:

I want to ask here, if is my lack of expertise, or it's simply inferior to SVN (which also gives me a bunch of problems in Android Studio, when in Eclipse i can work like a charm!).

This is what i've done: - made a project and decide to add to Version Control - went in project dir and get Bash console. - "git init" and there aren't all the files under git control because of this ignore list (why and how git decides alone that there are things to ignore here, is a mistery, if someone could explain that would be awesome.) - Deleted ".ignoregit" file list and give a "git add ." - now it seems everything's under VC but if when i drilled down in project tree i've found for example "build" folder not checked with git sign icon.

Tried every command like "add -f" and "add *" and such, no way. Sometimes it seems fooling me around adding something that wasn't added before, but remove something else from the list of versione files!

Really really inexplicable.

Thanks

Upvotes: 0

Views: 201

Answers (2)

Bill Mote
Bill Mote

Reputation: 12823

If you're going to use git I recommend you go through this quick tutorial http://www.gitimmersion.com. It takes about 2 hours all-in, but you'll have a strong foundation in git when you're done.

Upvotes: 1

fweigl
fweigl

Reputation: 22038

  1. why and how git decides alone that there are things to ignore here

The gitignore files are not created by git but I asume by Android studio and they do make sense. You can still decide to delete them.

  1. You probably have 2 gitignore files, one in the project folder, one in the app module folder. After deleting them both, all files should be added.

Upvotes: 0

Related Questions