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

隨筆 - 42  文章 - 3  trackbacks - 0
<2025年11月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

常用鏈接

留言簿(2)

隨筆檔案

文章檔案

網(wǎng)頁收藏

搜索

  •  

最新評論

閱讀排行榜

評論排行榜

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 鷹擊長空 閱讀(472) 評論(0)  編輯 收藏 引用

只有注冊用戶登錄后才能發(fā)表評論。
網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            性欧美videos另类喷潮| 亚洲精品国产无天堂网2021| 媚黑女一区二区| 欧美激情一区在线| 狠狠色综合日日| 欧美在线三区| 欧美精品三级日韩久久| 久久精品亚洲一区| 欧美日韩精品免费观看视频| 欧美wwwwww| 精品成人乱色一区二区| 亚洲欧美区自拍先锋| 欧美视频中文在线看| 午夜精品久久久久久久蜜桃app | 欧美四级在线观看| 久久久999精品| 欧美激情视频在线播放| 亚洲一区二区毛片| 久久精品亚洲一区二区三区浴池| 国产亚洲成av人在线观看导航| 久久久免费精品视频| 欧美片在线观看| 免费成人黄色| 欧美1区2区| 国产精品另类一区| 免费看成人av| 国产精品户外野外| 亚洲国产日韩在线一区模特| 国产精品亚洲人在线观看| 欧美高清在线观看| 国产亚洲va综合人人澡精品| 夜夜嗨网站十八久久| 亚洲成人资源网| 欧美一区二区三区四区高清 | 亚洲午夜一区二区| 欧美日韩一区精品| 在线观看欧美日韩| 亚洲欧美在线磁力| 亚洲精品视频免费在线观看| 亚洲欧美一区二区三区极速播放 | 国产精品v欧美精品v日韩| 久久久久高清| 国产精品久久久久影院亚瑟| 亚洲三级性片| 日韩视频中文| 亚洲国产日韩欧美在线动漫 | 一区二区高清在线观看| 久久久综合激的五月天| 午夜精品一区二区三区在线视| 欧美国产亚洲视频| 欧美大学生性色视频| 国模套图日韩精品一区二区| 香蕉久久国产| 欧美一区二区三区四区在线观看地址| 欧美激情中文不卡| 亚洲激情成人在线| 99re6这里只有精品视频在线观看| 免费看黄裸体一级大秀欧美| 欧美二区在线看| 亚洲欧洲日本mm| 欧美久久视频| 一本到高清视频免费精品| 亚洲你懂的在线视频| 国产精品视频专区| 欧美夜福利tv在线| 国产日韩一区二区| 亚洲一区二区精品| 另类激情亚洲| 欧美中文日韩| 欧美成人精品| 亚洲高清不卡在线观看| 久久一二三国产| 亚洲成人直播| 99pao成人国产永久免费视频| 一区二区三区国产精品| 99视频一区二区| 欧美人成网站| 亚洲午夜视频在线| 久久精品五月婷婷| 亚洲免费电影在线| 亚洲欧美另类国产| 激情视频一区二区三区| 欧美v日韩v国产v| 一区二区不卡在线视频 午夜欧美不卡在 | 国产精品免费一区豆花| 欧美一区二区三区四区在线观看地址| 久久亚洲视频| 亚洲精品一二三区| 国产精品国产三级国产专播精品人| 日韩亚洲一区二区| 亚洲女性喷水在线观看一区| 亚洲精品欧美精品| 欧美大片在线影院| 亚洲私人影院| 欧美日韩精品一区二区天天拍小说 | 久久精品国产亚洲一区二区三区| 中文国产成人精品久久一| 亚洲午夜羞羞片| 亚洲特色特黄| 亚洲第一色在线| 亚洲国产一区视频| 久久夜色精品国产| 99天天综合性| 久久久成人网| 亚洲国产欧美一区二区三区久久 | 国产在线播放一区二区三区| 欧美精品首页| 亚洲欧美变态国产另类| 亚洲国产精品久久久| 欧美亚洲自偷自偷| 韩国自拍一区| 国产精品视屏| 欧美一级视频精品观看| 1769国内精品视频在线播放| 国产乱码精品一区二区三区av| 欧美成人免费全部观看天天性色| av72成人在线| 欧美成人免费全部观看天天性色| 久久gogo国模裸体人体| 中国女人久久久| 亚洲三级免费| 在线欧美电影| 国产综合色一区二区三区| 国产精品日韩在线一区| 欧美日韩午夜精品| 欧美成熟视频| 美女主播精品视频一二三四| 久久激情视频免费观看| 亚洲欧美日韩国产一区| 在线一区亚洲| 一区二区日韩| 一区二区三区免费网站| 欧美成人一区二区| 亚洲无毛电影| 欧美福利影院| 久久中文字幕导航| 久久久久久久综合狠狠综合| 日韩特黄影片| 亚洲高清在线播放| 卡一卡二国产精品| 久久中文在线| 欧美a级一区| 久久亚洲精品网站| 久久免费国产精品| 欧美在线3区| 久久激情视频久久| 欧美中文在线视频| 小辣椒精品导航| 久久精品国产清高在天天线| 久久久久国产一区二区三区| 久久影视精品| 欧美成人精品h版在线观看| 欧美成人视屏| 亚洲欧洲精品天堂一级| 亚洲另类自拍| 在线视频亚洲| 午夜精彩视频在线观看不卡| 欧美综合国产| 六月婷婷一区| 亚洲人精品午夜在线观看| 亚洲视频每日更新| 亚洲男女毛片无遮挡| 欧美日韩另类视频| 亚洲国产第一页| 国产日韩一区二区| 亚洲最黄网站| 亚洲视屏一区| 欧美日韩一区二区在线| 免费成人av在线看| 亚洲一区区二区| 亚洲欧美日韩国产一区二区| 日韩一区二区久久| 一区二区成人精品| 午夜精品久久久久久久久久久久久| 欧美制服丝袜| 欧美韩日一区二区| 亚洲视频国产视频| 久久精品国产第一区二区三区| 久久久噜噜噜久久人人看| 欧美肥婆在线| 国产精品视频福利| 亚洲大胆人体视频| 一区二区三区视频在线观看| 香蕉精品999视频一区二区 | 亚洲伊人一本大道中文字幕| 久久久久九九视频| 欧美不卡视频一区发布| 国产精品成人一区| 影音先锋欧美精品| 亚洲制服av| 另类国产ts人妖高潮视频| 99精品视频免费观看| 久久精品国产一区二区电影| 欧美片第1页综合| 好吊色欧美一区二区三区四区 | 亚洲性xxxx| 一卡二卡3卡四卡高清精品视频| 巨乳诱惑日韩免费av| 亚洲欧美在线播放| 亚洲婷婷综合色高清在线|