2

I'm a VSS (Visual source safe) & Dropbox guy but new to GitHub. I'm using Windows Github tool to manage repositories on our remote server as I concluded in my previous SO post. I was glad to have sought this single point easy to use tool without any need for a deeper knowledge of git.

Things have been working fine until one day I had to add a new folder to my repository. The Windows Github tool wouldn't recognize the folder as a new content to be pushed! After some struggle I derived that it "does" maintain sync with my "initial folders" but simply creating a new folder in the repository directory wouldn't sync it like Dropbox!

I searched to know how I can do it or if I had to use GitShell. My bad any I tried it, failed. Finally, I decided to purge everything and re-create the repository folder structure with this new folder like I did with my initial setup. But I don't know how or why it kept saying that the /.git/index file was being used by another process. I tried to empty this folder but it wouldn't. Finally, a logoff was able to free that file for me and I re-created everything. Pheew!

I might be doing it wrong as a newbie or even misusing Git due to my Dropbox habits. Pls correct me! What would be the best way?

My usage is more like VSS & dropbox(with version control) in a small remotely connected team. I started with this simple Windows Github tutorial. What about the following two -

Do they provide better management? Pls suggest if Windows GitHub is the best (if so how to add folders later?)

Community
  • 1
  • 1
Hemant Tank
  • 1,724
  • 4
  • 28
  • 56

1 Answers1

3

Just in case, do note that adding a folder won't trigger anything for Git: you won't be able to push it if that folder is empty, because Git will consider it as "no content", and will ignore that new folder.

See also "How do I add an empty directory to a git repository?".

If you add a folder and some files in it, then the GitHub for Windows interface will detect that new content, and ask you to add and commit, which means you will be able to push.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Actually that is what I expected Windows Github tool to do - I added a new folder with a new zip file but still it wouldn't detect it as a new push change - any reasons? – Hemant Tank Jan 23 '13 at 16:37
  • @HemantTank strange, unless you have a .gitignore file set to ignore .zip file (which is possible if your repo is created with GitHub for Windows, as that tool might set it up directly with a .gitignore file). Don't forget Git is ill-suited for binary management, so archives (zip, tgz, ...) are usually stored elsewhere, not in a DVCS. – VonC Jan 23 '13 at 16:39
  • Sorry for the delay. Well, this new setup seem to be doing that! What might have caused the old one to misbehave? I mean this was a simple operation! Also can you provide some more info on how to manage the gitignore file and is there a way to push updates automatically (i.e. like dropbox). Thank you. – Hemant Tank Jan 26 '13 at 13:36