Create a project directory, initialise git repository and copy some files:
mkdir gitter
git init
ls -a
. .. .git
git add -n /Users/ergun/gitter/ // -n: dry-run
git add /Users/ergun/gitter/ // actual add (stage)
git commit -m 'initial project version' /Users/ergun/gitter/
You may use add command to add new files or stage modified files.
Only staged files can be committed.
This is how you exclude DerivedData folder under your project folder:
Edit .git/info/exclude and add this line:
DerivedData/
x
No comments:
Post a Comment