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

隨筆 - 42  文章 - 3  trackbacks - 0
<2025年9月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用鏈接

留言簿(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>
            欧美午夜视频在线| 亚洲一区二区三区在线看 | 亚洲男女自偷自拍图片另类| 亚洲区欧美区| 欧美日韩在线播放一区| 午夜免费久久久久| 久久9热精品视频| 亚洲国产一区二区a毛片| 91久久精品国产91久久性色tv | 欧美一二三区在线观看| 在线免费一区三区| av不卡在线观看| 国产亚洲激情视频在线| 欧美成人资源| 国产精品一二三| 免费亚洲婷婷| 国产欧美大片| 亚洲激情啪啪| 国产一区二区三区久久| 亚洲国产成人午夜在线一区| 欧美性感一类影片在线播放| 免费久久99精品国产自在现线| 欧美日韩国产黄| 噜噜噜噜噜久久久久久91| 欧美日韩国产综合新一区| 久久一区欧美| 国产精品欧美一区喷水| 亚洲高清在线精品| 国产综合久久久久久鬼色| 日韩亚洲国产欧美| 亚洲激情av在线| 欧美一区影院| 欧美亚洲自偷自偷| 欧美日韩免费一区二区三区| 欧美/亚洲一区| 韩国成人理伦片免费播放| 一区二区三区黄色| 99亚洲一区二区| 麻豆免费精品视频| 久久香蕉国产线看观看av| 国产精品一区二区久久| 一区二区免费看| 亚洲色图综合久久| 欧美a级片网站| 欧美激情视频免费观看| 精品成人国产| 久久久福利视频| 久久久青草婷婷精品综合日韩| 国产精品影音先锋| 亚洲在线第一页| 性欧美长视频| 国产午夜精品理论片a级探花| 一区二区三区毛片| 亚洲午夜在线观看视频在线| 欧美日本一区二区三区| 亚洲精品影院| 一区二区三区四区五区在线| 欧美日本一区| 在线午夜精品自拍| 亚洲欧美日韩成人| 国产欧美日韩专区发布| 亚洲欧美在线观看| 久久久久久久激情视频| 激情五月婷婷综合| 久久野战av| 亚洲人成在线影院| 亚洲一区欧美激情| 国产精品免费观看视频| 午夜精品亚洲一区二区三区嫩草| 久久久精品国产一区二区三区| 国产日韩一区| 老司机成人网| 亚洲精品之草原avav久久| 99国产精品久久久久老师| 欧美三区在线视频| 午夜精品福利一区二区蜜股av| 久久蜜臀精品av| 亚洲欧洲在线免费| 国产精品v欧美精品v日本精品动漫 | 老鸭窝亚洲一区二区三区| 在线播放精品| 欧美日韩免费观看一区二区三区| 一区二区冒白浆视频| 久久免费国产精品1| 日韩一级免费| 国产日产欧产精品推荐色| 麻豆久久久9性大片| 一本色道久久综合亚洲91| 久久久久国内| 99国产精品99久久久久久粉嫩| 国产精品网站一区| 免费成人小视频| 亚洲一区二区三区久久| 亚洲成人在线网| 翔田千里一区二区| 亚洲国产一区在线| 国产伦精品一区二区三区高清版| 久久久噜噜噜| 黄色成人av网| 欧美v国产在线一区二区三区| 夜夜爽www精品| 免费欧美视频| 亚洲欧美成人网| 亚洲激情在线| 国产夜色精品一区二区av| 欧美电影资源| 久久久91精品国产一区二区三区 | 日韩一区二区精品葵司在线| 久久久www成人免费精品| 亚洲四色影视在线观看| 亚洲国产cao| 极品少妇一区二区| 国产美女诱惑一区二区| 欧美三区美女| 欧美日本视频在线| 欧美大片一区二区三区| 久久精品夜色噜噜亚洲a∨| 亚洲综合成人婷婷小说| 亚洲美女中文字幕| 亚洲人成网在线播放| 男人天堂欧美日韩| 卡通动漫国产精品| 久久国产精品一区二区| 先锋亚洲精品| 亚洲在线视频一区| 亚洲一区在线观看免费观看电影高清| 亚洲第一精品久久忘忧草社区| 国产无遮挡一区二区三区毛片日本| 国产精品高潮呻吟久久av黑人| 欧美日韩成人综合在线一区二区 | 欧美日韩国产一区二区| 欧美成黄导航| 欧美国产日韩一区二区| 免费精品99久久国产综合精品| 久久亚洲电影| 久久亚洲影院| 欧美高清视频一区| 欧美精品电影| 欧美日韩午夜精品| 欧美午夜久久| 国产精品欧美一区二区三区奶水| 国产精品久久久久久模特| 国产精品久久一区主播| 国产精品美女www爽爽爽视频| 国产精品久久| 国产日韩av在线播放| 国产亚洲精品自拍| 在线观看视频亚洲| 亚洲巨乳在线| 亚洲伊人一本大道中文字幕| 性欧美8khd高清极品| 久久久久久久久久久久久9999| 老司机午夜精品视频| 亚洲欧洲午夜| 亚洲最快最全在线视频| 午夜国产精品视频| 久久性色av| 欧美三级在线播放| 国外成人网址| 亚洲精品在线免费| 性xx色xx综合久久久xx| 美女黄色成人网| 99re6热只有精品免费观看 | 欧美一级二级三级蜜桃| 老司机aⅴ在线精品导航| 欧美视频在线免费| 国产主播一区| 一区二区日韩欧美| 久久久久免费观看| 亚洲精品国精品久久99热一| 亚洲欧美日韩综合| 欧美激情一区| 国产在线高清精品| a4yy欧美一区二区三区| 久久狠狠婷婷| 亚洲乱码视频| 久久影音先锋| 国产精品五月天| 亚洲日本视频| 久久久精品动漫| 在线亚洲欧美视频| 久久人人精品| 国产日本欧美一区二区三区| 亚洲精品乱码久久久久久久久| 欧美一区二区三区播放老司机| 欧美黄色一区二区| 欧美一区精品| 国产精品美女www爽爽爽| 日韩视频在线你懂得| 久久一区二区精品| 亚洲免费视频成人| 欧美无乱码久久久免费午夜一区| 狠狠色狠狠色综合| 欧美一级在线播放| 亚洲麻豆视频| 免费人成网站在线观看欧美高清 | 国产精品私房写真福利视频| 亚洲美女中文字幕| 欧美成人综合一区| 久久精品夜色噜噜亚洲aⅴ|