青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

隨筆 - 42  文章 - 3  trackbacks - 0
<2012年7月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

常用鏈接

留言簿(2)

隨筆檔案

文章檔案

網頁收藏

搜索

  •  

最新評論

閱讀排行榜

評論排行榜

Create a new local repository:
prompt> mkdir /path/to/repo:
prompt> cd /path/to/repo
prompt> git init
Initialized empty Git repository in /path/to/repo/.git/
prompt>
... create file(s) for first commit ...
prompt> git add .
prompt> git commit -m 'initial import'
Created initial commit bdebe5c: initial import.

1 files changed, 1 insertions(+), 0 deletions(-)
Note that the commit action only commits to your local repository.

Change one of my github repo name in two steps:

Firstly, cd to your local git directory, and find out what remote name(s) refer to that URL

$ git remote -v origin  git@github.com:someuser/someproject.git 

Then, set the new URL

$ git remote set-url origin git@github.com:someuser/newprojectname.git 

or in older versions of git, you might need

$ git remote rm origin $ git remote add origin git@github.com:someuser/newprojectname.git 

(origin is the most common remote name, but it might be called something else.)

But if there's lots of people who are working on your project, they will all need to do the above steps, and maybe you don't even know how to contact them all to tell them. That's what #1 is about.

Further reading:

Footnotes:

1 The exact format of your URL depends on which protocol you are using, e.g.

push your local repository into remote repository:
prompt>git push origin master
To amend the last wrong commit:

git commit --amend -m "New commit message"

 

If the commit you want to fix isn’t the most recent one:

  1. git rebase --interactive $parent_of_flawed_commit

    If you want to fix several flawed commits, pass the parent of the oldest one of them.

  2. An editor will come up, with a list of all commits since the one you gave.

    1. Change pick to reword (or on old versions of Git, to edit) in front of any commits you want to fix.
    2. Once you save, git will replay the listed commits. 

  3. Git will drop back you into your editor for every commit you said you want to reword, and into the shell for every commit you wanted to edit. If you’re in the shell:

    1. Change the commit in any way you like.
    2. git commit --amend
    3. git rebase --continue

Most of this sequence will be explained to you by the output of the various commands as you go. It’s very easy, you don’t need to memorise it – just remember that git rebase --interactive lets you correct commits no matter how long ago they were.

Today, when I try to push some code to the remote, it told me the there is a permission issue, I finally fixed it by created a new key, add it to my git account and local account. Here is the process of adding to local


$ git push -u origin master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

$ ssh -vT git@github.com
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug1: No more authentication methods to try.
Permission denied (publickey).

$  ssh-add -l
Could not open a connection to your authentication agent.

$ eval `ssh-agent`
Agent pid 4968

If you did not have a key, generate one according this 
https://help.github.com/articles/generating-ssh-keys

then add the key
$  ssh-add /c/Users/li/.ssh/key
Identity added: /c/Users/li/.ssh/key

$ ssh -vT git@github.com
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug1: identity file /c/Users/li/.ssh/identity type -1

Hi ***! You've successfully authenticated, but GitHub does not provide shell access.
debug1: channel 0: free: client-session, nchannels 1
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.3 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 1


$ git push -u origin master
Counting objects: 46, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (42/42), done.
Writing objects: 100% (46/46), 21.33 KiB, done.
Total 46 (delta 1), reused 0 (delta 0)

Clone your repository

Create a new repository in a new directory via the following commands.

 

# Switch to home
cd ~
# Make new directory
mkdir repo02

# Switch to new directory
cd ~/repo02
# Clone
git clone ../remote-repository.git . 

 

posted on 2012-07-09 22:04 鷹擊長空 閱讀(466) 評論(0)  編輯 收藏 引用
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲精品日韩在线| 99re在线精品| 久久蜜臀精品av| 久久精品一区二区三区不卡牛牛| 国模精品一区二区三区色天香| 久久久国产精品一区二区三区| 久久久久久尹人网香蕉| 亚洲国产黄色片| 亚洲理论在线| 国产午夜精品全部视频在线播放| 久久久免费精品| 欧美黄色一区二区| 亚洲欧美日韩在线不卡| 久久久7777| 在线亚洲电影| 久久国产福利| 亚洲一区二区三区在线| 欧美一级大片在线观看| 亚洲激情在线观看| 亚洲一区观看| 亚洲精品1234| 亚洲一区二区三区精品在线观看| 在线观看亚洲视频啊啊啊啊| 欧美大片在线看免费观看| 欧美私人啪啪vps| 久久亚洲精品中文字幕冲田杏梨| 欧美黄色免费| 久久久久欧美精品| 欧美少妇一区| 欧美激情a∨在线视频播放| 国产精品美女久久久免费| 噜噜噜躁狠狠躁狠狠精品视频 | 老司机免费视频一区二区| 欧美精品一区二区在线观看| 久久精品国产77777蜜臀| 欧美—级a级欧美特级ar全黄| 欧美专区亚洲专区| 欧美三级电影精品| 欧美国产日韩一区| 国产一区二区在线观看免费播放| 99这里只有久久精品视频| 伊人久久婷婷| 欧美一区二区三区免费观看| 亚洲影音一区| 欧美精品一区二区视频 | 亚洲欧洲偷拍精品| 欧美一区网站| 久久se精品一区二区| 欧美日韩三级视频| 亚洲国产欧美一区| 国语精品中文字幕| 性欧美在线看片a免费观看| 在线视频中文亚洲| 欧美日韩三级| 一区二区三区国产在线| 夜夜嗨av色综合久久久综合网| 葵司免费一区二区三区四区五区| 久久久久久久久久久一区| 国产精品久久久久久一区二区三区| 亚洲精品1区2区| 亚洲伦伦在线| 欧美精品一线| 一区二区三区日韩精品| 亚洲午夜免费福利视频| 欧美视频在线观看一区二区| 亚洲精品久久久久久久久| 日韩视频免费观看高清完整版| 另类国产ts人妖高潮视频| 美女999久久久精品视频| 激情自拍一区| 久久综合亚洲社区| 欧美国产一区二区在线观看| 亚洲精品国精品久久99热| 欧美精品在线视频| 亚洲视频axxx| 久久国产视频网| 极品尤物av久久免费看| 噜噜噜噜噜久久久久久91| 欧美成人有码| 在线视频中文亚洲| 国产九色精品成人porny| 欧美综合国产| 欧美成年视频| 亚洲视频专区在线| 国产欧美日韩激情| 久久裸体视频| 亚洲精品一区二区在线观看| 午夜欧美精品| 在线观看日韩一区| 欧美手机在线| 久久精品国产99国产精品| 亚洲成色777777在线观看影院| 一本色道久久88亚洲综合88| 国产精品视频99| 久久久女女女女999久久| 亚洲欧洲日韩女同| 久久精品99国产精品日本| 亚洲欧洲三级| 国产欧美精品日韩区二区麻豆天美 | 久久久精品国产免费观看同学| 亚洲第一二三四五区| 欧美日韩精品一区视频| 欧美一区综合| av成人免费在线观看| 久久久成人精品| 亚洲在线播放| 亚洲黄色影院| 国产一区二区三区四区在线观看| 欧美精品二区| 久久久精品日韩欧美| 在线一区日本视频| 亚洲国产另类精品专区| 久久精品噜噜噜成人av农村| 一本色道久久综合一区| 一区免费观看| 国产免费成人在线视频| 欧美日韩成人在线视频| 看欧美日韩国产| 香蕉视频成人在线观看| 日韩亚洲欧美成人一区| 欧美国产第二页| 美女精品在线| 久久久久久网| 久久aⅴ乱码一区二区三区| 亚洲少妇诱惑| 一区二区高清在线观看| 亚洲欧洲一二三| 亚洲福利视频二区| 伊人久久大香线蕉av超碰演员| 国产麻豆精品久久一二三| 国产精品theporn| 欧美日韩精品欧美日韩精品| 欧美福利网址| 欧美成人免费在线视频| 狂野欧美一区| 欧美mv日韩mv国产网站app| 久久中文精品| 男女av一区三区二区色多| 久久免费黄色| 美日韩精品视频| 欧美69wwwcom| 欧美精品一区三区在线观看| 欧美高清视频一区二区| 欧美精品在欧美一区二区少妇| 欧美激情视频在线播放| 欧美久久综合| 国产精品国产精品| 国产精品综合视频| 国产亚洲美州欧州综合国| 国产欧美精品在线观看| 国产一区二区三区观看| 在线日韩欧美视频| 最新高清无码专区| 99精品国产在热久久下载| 亚洲网友自拍| 久久国产手机看片| 久久一区精品| 亚洲国产美国国产综合一区二区| 亚洲精品日本| 亚洲性夜色噜噜噜7777| 欧美一二三视频| 免费一级欧美片在线播放| 欧美经典一区二区| 国产精品久久亚洲7777| 国产亚洲aⅴaaaaaa毛片| 1024成人| 亚洲一区在线免费观看| 久久久精品一区二区三区| 欧美韩日一区二区| 一本一道久久综合狠狠老精东影业 | 久久成人这里只有精品| 欧美激情精品久久久久久蜜臀| 亚洲日本视频| 亚洲影院高清在线| 巨乳诱惑日韩免费av| 欧美午夜免费| 在线精品福利| 亚洲欧美一区二区视频| 欧美风情在线观看| 亚洲一区二区三区四区中文| 久久久午夜视频| 国产精品久久97| 最新国产拍偷乱拍精品| 午夜亚洲一区| 亚洲黄色影片| 久久精品91久久香蕉加勒比 | 亚洲欧美日韩第一区| 欧美大片免费观看| 国产午夜精品久久久久久免费视| 亚洲免费观看高清完整版在线观看熊 | 欧美成人中文字幕在线| 国产日韩1区| 亚洲视频第一页| 免费在线看成人av| 亚洲欧美国产一区二区三区| 欧美激情一区二区久久久| 国产一区清纯| 欧美一进一出视频| 日韩一级欧洲| 欧美国产在线视频|