LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-04-2009, 06:03 PM   #16
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,396

Rep: Reputation: 814Reputation: 814Reputation: 814Reputation: 814Reputation: 814Reputation: 814Reputation: 814

Quote:
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.

Quote:
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
Telemachos
Member
 
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
indienick
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:
Code:
$ git add .
Then you can issue your:
Code:
$ git commit [[-a] -m 'commit message']
followed by your
Code:
$ git push remote branch_name
 
Old 12-05-2009, 07:54 AM   #19
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
"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
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Quote:
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.
  


Reply

Tags
git


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 02:12 PM.

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