$ cd /Users/XXXX/Desktop/Create\ NewsProjects/Swift/SLweiBo ;
$ lsLICENSEREADME.md
$ cp /Users/XXXX/Desktop/Create\ NewsProjects/gitignore-master/Swift.gitignore .gitignore
$ git status //查看状态On branch masterYour branch is up-to-date with 'origin/master'.Untracked files: (use "git add..." to include in what will be committed).gitignorenothing added to commit but untracked files present (use "git add" to track)
$ git add . //添加命令
$ git commit -m "添加.gitignore"[master dcd4104] 添加.gitignore Committer: XXXYour name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
1 file changed, 63 insertions(+)
create mode 100755 .gitignore
$ git push
……..
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 1001 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@git.oschina.net:oscshulin/SLweiBo.git
c52f9ba..dcd4104 master -> master