What Git Offers to You

Git is tool that can manage the version of your files for you.

Use git to manage a local folder for you.

In the artical, the local folder is /home/null/ManagedByGit, and the file in this folder is file.info.

Before we you do anything, you should let git know who you are.

git config --global user.name your_name_here
git config --global user.email your_email_here

First of all, we should build a git repository for this folder. To achieve this target,

1. cd into your folder

2. execute the following command

git init
At this time, you will find that there is a folder named .git is created.

and then, the content of this folder looks like this:

Now, we take a snapshot for each file in this folder...

git add .

Commit with a message as a comment...

git commit -m useful-infomation-here

Create a copy as backup for this folder...

git clone ./.git /home/null/backup
If you want to know what's going on the files in this folder...

git log

Check the difference...

git show

If you want to down the soucre code by https, just take the following command as a reference.

git clone https://github.com/aptana/Pydev /home/null/pydev

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值