Skip to content

Instantly share code, notes, and snippets.

@piaoapiao
Created June 20, 2012 14:12
Show Gist options
  • Save piaoapiao/2960096 to your computer and use it in GitHub Desktop.
Save piaoapiao/2960096 to your computer and use it in GitHub Desktop.
git 使用记录
1
$ git clone https://github.com/piaoapiao/third.git
Cloning into 'third'...
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
Administrator@FREESKYC-B9D3B2 /d
2
$ git add .
fatal: Not a git repository (or any of the parent directories): .git
Administrator@FREESKYC-B9D3B2 /d
3
$ ls
360Downloads chakan wgd3
Documents and Settings chakan.rar ?????? ????????????
Downloads crackme ??????
FOUND.000 fff ????????????
FOUND.001 google.txt ????????????
FOUND.002 ip.txt ?????? ????????????.txt
Favorites iso ???????????????
FunshionMedia localhost ??????????????? (2)
Local Settings mygit ???
My Documents mysql ???????????????????????????.txt
NC?????? pagefile.sys ??????
Practice sina ??????
Program Files sss ??????.txt
Recycled svnData ??????.txt
SAOMIAO svnData2 ??????.txt
System Volume Information third
aaa wgd
Administrator@FREESKYC-B9D3B2 /d
4
$ cd third
Administrator@FREESKYC-B9D3B2 /d/third (master)
5
$ git add .
Administrator@FREESKYC-B9D3B2 /d/third (master)
6
$ git commit -m "add 4 files"
[master e27d41d] add 4 files
4 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 564645.jgs
create mode 100644 789897.jgs
create mode 100644 ewarrewa.jgs
create mode 100644 sdf.jgs
Administrator@FREESKYC-B9D3B2 /d/third (master)
7
$ git branch
* master
Administrator@FREESKYC-B9D3B2 /d/third (master)
8
$ git remote -v
origin https://github.com/piaoapiao/third.git (fetch)
origin https://github.com/piaoapiao/third.git (push)
Administrator@FREESKYC-B9D3B2 /d/third (master)
9
$ git push origin master
Username for 'https://github.com':
Password for 'https://piaoapiao@github.com':
To https://github.com/piaoapiao/third.git
083f70d..e27d41d master -> master
ssh-keygen -t rsa -C "tianma.123456@163.com"
ssh -T git@github.com
git archive --format zip -o filename.zip HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment