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

隨筆 - 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>
            一区二区三区四区国产| 亚洲精品网站在线播放gif| 欧美亚洲三级| 国产一区自拍视频| 久久综合五月天婷婷伊人| 久久嫩草精品久久久精品| 在线精品视频一区二区| 亚洲福利国产精品| 欧美黄色大片网站| 亚洲特色特黄| 欧美一级二区| 亚洲电影一级黄| 亚洲免费大片| 国产亚洲欧美在线| 亚洲国产91| 国产精品亚洲精品| 欧美gay视频| 国产精品福利在线观看网址| 久久精品综合一区| 另类综合日韩欧美亚洲| 亚洲视频导航| 久久久久久久久综合| 亚洲免费高清| 欧美综合国产精品久久丁香| 亚洲经典在线| 午夜精品国产更新| 亚洲日产国产精品| 午夜精品网站| 一本色道久久综合亚洲精品婷婷| 亚洲欧美日韩精品久久奇米色影视 | 亚洲国产一区二区视频| 亚洲人屁股眼子交8| 国产日韩欧美精品综合| 亚洲国产日韩欧美在线99| 国产精品一区一区三区| 欧美激情一区二区| 国产一区二区三区av电影 | 欧美一区2区视频在线观看 | 午夜日韩视频| 99精品视频一区| 久久久久久久一区| 欧美亚洲免费电影| 欧美日韩一区二区三区在线 | 麻豆9191精品国产| 久久精品电影| 国产精品高清在线| 亚洲伦伦在线| 99re热这里只有精品视频| 久久精品电影| 欧美在线观看一区| 国产精品久久久久影院亚瑟| 欧美激情一区二区三级高清视频 | 欧美日本不卡| 亚洲黄色成人久久久| 在线观看国产精品网站| 欧美在线免费看| 久久动漫亚洲| 国产精品亚洲欧美| 亚洲一区二区三区色| 亚洲主播在线播放| 欧美午夜宅男影院在线观看| 亚洲精品久久久久久下一站| 日韩视频国产视频| 欧美aaa级| 亚洲激情欧美| 一区二区三区不卡视频在线观看 | 午夜视频在线观看一区| 欧美一区二区日韩一区二区| 欧美性色综合| 亚洲免费视频在线观看| 亚洲欧美中文字幕| 国产精品一区二区三区久久久| 亚洲深夜av| 午夜在线视频一区二区区别| 国产精品男gay被猛男狂揉视频| 一区二区激情| 欧美在线啊v一区| 韩国女主播一区| 久久一本综合频道| 亚洲黄色性网站| 这里只有精品丝袜| 国产精品视频一区二区高潮| 先锋影音久久久| 久久嫩草精品久久久久| 亚洲福利视频免费观看| 欧美成人免费全部| 在线视频你懂得一区| 久久av老司机精品网站导航| 影音先锋日韩精品| 欧美日韩精品免费| 亚洲在线观看免费视频| 裸体女人亚洲精品一区| 日韩亚洲欧美在线观看| 国产精品一区二区你懂的| 久久国产66| 亚洲精品小视频| 久久国产成人| 99国产精品久久久久久久成人热| 欧美先锋影音| 久久亚洲精品一区| 亚洲色无码播放| 欧美成人免费在线| 午夜久久久久久| 亚洲人成小说网站色在线| 欧美午夜片欧美片在线观看| 久久另类ts人妖一区二区| 亚洲精品国产无天堂网2021| 欧美综合国产精品久久丁香| 亚洲人成在线播放网站岛国| 国产精品性做久久久久久| 免费观看在线综合| 欧美一级午夜免费电影| 亚洲激情中文1区| 久久精品视频一| 亚洲欧美精品伊人久久| 亚洲激情中文1区| 国产一级一区二区| 欧美视频不卡中文| 欧美二区在线看| 久久久综合视频| 欧美亚洲三区| 亚洲一区二区三区四区中文| 亚洲欧洲精品成人久久奇米网| 久久久精品动漫| 午夜久久电影网| 亚洲图片在区色| 一本色道久久综合亚洲精品按摩| 欲色影视综合吧| 国产一区二区三区在线观看精品| 国产精品地址| 欧美日韩色一区| 欧美精品一区二区在线观看| 美玉足脚交一区二区三区图片| 久久久999| 久久精品国产免费看久久精品| 亚洲欧美国产毛片在线| 99精品国产在热久久下载| 91久久精品美女高潮| 欧美激情一区二区三区在线视频观看 | 激情国产一区二区| 国产视频一区欧美| 国产伦精品一区| 国产伦理一区| 国产毛片一区| 国产精品亚洲片夜色在线| 国产精品国产三级欧美二区| 欧美日韩综合网| 国产精品国产三级国产普通话蜜臀 | 国产精品大片wwwwww| 国产精品爱久久久久久久| 欧美日韩国产成人| 欧美调教vk| 国产欧美日韩综合一区在线观看| 国产精品人人做人人爽人人添| 国产精品日日摸夜夜摸av| 国产精品美女久久久久av超清| 国产精品免费网站在线观看| 国产精品一区一区| 激情综合在线| 亚洲国产毛片完整版| 日韩午夜在线观看视频| 宅男噜噜噜66国产日韩在线观看| 亚洲午夜一级| 久久九九热免费视频| 欧美大学生性色视频| 日韩视频一区二区| 亚洲欧美日韩精品久久久久| 久久久久久成人| 欧美激情影院| 国产精品亚洲人在线观看| 一区二区三区我不卡| 一区二区三区回区在观看免费视频| 亚洲一区观看| 麻豆乱码国产一区二区三区| 亚洲欧洲一区二区三区在线观看 | 亚洲天堂第二页| 性欧美videos另类喷潮| 毛片基地黄久久久久久天堂| 欧美日韩国产区| 国内外成人免费激情在线视频| 亚洲卡通欧美制服中文| 午夜精彩国产免费不卡不顿大片| 麻豆av一区二区三区| 99视频超级精品| 老司机精品久久| 国产精品三级视频| 亚洲肉体裸体xxxx137| 午夜欧美视频| 亚洲欧洲另类| 久久精品国产v日韩v亚洲 | 欧美激情亚洲自拍| 国产欧美一区二区精品婷婷| 亚洲人成亚洲人成在线观看图片| 欧美亚洲在线播放| 亚洲精品视频在线观看免费| 久久久国产视频91| 国产麻豆一精品一av一免费| 亚洲精品久久久久中文字幕欢迎你| 久久国产精品网站| 亚洲最新色图|