Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-04-2009, 06:03 PM   #16
Senior Member
Registered: Nov 2005
Distribution: Arch
Posts: 2,990

Rep: Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192

Originally Posted by ozanbaba View Post
funny it does not do that on my system.
I'm not what "that" refers to. I suppose it should behave as described in the manual.

tree config spesific?
Maybe, did you set up some aliases? You can use git config -l to see the settings used.
Old 12-04-2009, 07:53 PM   #17
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
Git is different from SVN. Committing is a two-stage process first you stage items you plan to commit with git add and then you actually commit them with git commit.

It's a different program; it works differently.
Old 12-05-2009, 12:09 AM   #18
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
I'm surprised no-one has said this yet (or maybe they did, and I didn't notice it): when you are ready to "git commit", you don't have to add each individual file, one-by-one - just go into the top directory in your source tree, and run:
$ git add .
Then you can issue your:
$ git commit [[-a] -m 'commit message']
followed by your
$ git push remote branch_name
Old 12-05-2009, 07:54 AM   #19
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
"git add ." probably won't work for you if you have files that you don't want git to track.
Old 12-05-2009, 08:17 AM   #20
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 672

Rep: Reputation: 94
Originally Posted by MTK358 View Post
"git add ." probably won't work for you if you have files that you don't want git to track.
git ignore solves that. add files to be ignored to .gitignore and git will ignore them all together.
1 members found this post helpful.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on GIT? your_shadow03 Linux - Server 1 03-20-2009 07:34 AM
why is git scm named 'git'? hottdogg Linux - General 5 02-03-2009 07:25 AM
Using GIT vkmgeek Linux - General 1 12-25-2008 04:48 PM
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source centguy Linux - Desktop 2 10-08-2008 10:36 PM
git vkmgeek Linux - Newbie 2 06-19-2008 09:11 AM

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration