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

隨筆 - 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>
            一区二区高清视频| 国产精品亚洲激情| 亚洲国产一二三| 亚洲第一精品福利| 六月丁香综合| 99国产精品久久| 一区二区三区四区五区精品视频| 欧美日韩综合另类| 亚洲欧美在线看| 久久国产精品黑丝| 亚洲巨乳在线| 在线视频亚洲| 韩国在线视频一区| 亚洲精品久久久久久久久久久久久| 欧美日韩综合视频| 狼人社综合社区| 欧美精品系列| 久久久亚洲高清| 欧美日韩国产综合视频在线观看中文| 亚洲香蕉成视频在线观看| 欧美一区二区啪啪| av成人免费| 久久精品综合| 亚洲欧美制服中文字幕| 六月婷婷久久| 久久久精品性| 欧美三区美女| 欧美激情精品久久久| 国产精品午夜久久| 91久久国产自产拍夜夜嗨| 国产午夜精品一区二区三区欧美 | 亚洲午夜电影网| 伊人久久综合| 亚洲免费综合| 亚洲精品午夜| 久久午夜精品一区二区| 性欧美1819sex性高清| 欧美国产日韩xxxxx| 久久久爽爽爽美女图片| 国产精品久久久久7777婷婷| 亚洲电影中文字幕| 黄网站色欧美视频| 先锋影音国产一区| 亚洲欧美另类综合偷拍| 欧美精品一区在线| 亚洲大胆在线| 影音先锋中文字幕一区| 欧美一乱一性一交一视频| 亚洲在线视频网站| 欧美视频二区| 艳妇臀荡乳欲伦亚洲一区| 亚洲欧洲综合另类在线| 老色批av在线精品| 欧美.www| 亚洲精华国产欧美| 免费毛片一区二区三区久久久| 久久夜色精品国产欧美乱极品| 国产日韩精品视频一区二区三区| 夜久久久久久| 亚洲女同在线| 国产精品三级视频| 亚洲欧美在线看| 久久精品国产一区二区三区免费看| 国产精品美女久久久| 亚洲一区二区精品在线| 欧美一区二区免费观在线| 国产精品影视天天线| 亚洲欧美在线免费| 久久色在线播放| 亚洲第一区在线观看| 母乳一区在线观看| 亚洲精品偷拍| 亚洲欧美日本另类| 国产欧美一区二区精品性色 | 欧美 日韩 国产精品免费观看| 伊人精品视频| 美腿丝袜亚洲色图| 亚洲精品日产精品乱码不卡| 亚洲午夜精品一区二区| 国产伦精品一区二区三| 性色av一区二区三区在线观看| 久久人人看视频| 亚洲精品1234| 欧美天堂亚洲电影院在线播放 | 一本一本a久久| 亚洲欧美日韩在线观看a三区| 国产伪娘ts一区| 欧美xart系列高清| 中文在线资源观看网站视频免费不卡 | 亚洲国产va精品久久久不卡综合| 欧美高清视频一区二区三区在线观看| 亚洲人成亚洲人成在线观看| 亚洲免费伊人电影在线观看av| 国产亚洲一级| 欧美精品电影在线| 午夜日韩视频| 亚洲欧洲日本专区| 久久激情五月丁香伊人| 91久久中文字幕| 国产欧美精品xxxx另类| 欧美成人69| 性欧美长视频| 99国产麻豆精品| 免费人成网站在线观看欧美高清| 在线视频免费在线观看一区二区| 国产资源精品在线观看| 欧美日韩精品不卡| 久久久一二三| 午夜精品一区二区三区四区| 亚洲精品欧美日韩专区| 久久久久久久久久久成人| 一区二区免费看| 亚洲大胆av| 国产亚洲一区二区精品| 日韩视频免费在线| 欧美一级日韩一级| 一区二区三区毛片| 亚洲国产精品电影| 麻豆久久精品| 久久久久久久网站| 校园春色国产精品| 一区二区三区www| 最新高清无码专区| 在线成人免费视频| 国产主播一区二区三区| 国产精品美女午夜av| 欧美色道久久88综合亚洲精品| 美乳少妇欧美精品| 蜜桃久久av| 久热精品视频在线观看| 国产一区二区三区在线观看免费| 欧美日韩a区| 欧美精品一区二区视频 | 久久免费一区| 久久久久久久91| 久久国产欧美| 久久久久www| 久久亚洲免费| 免费黄网站欧美| 女人香蕉久久**毛片精品| 蜜臀av在线播放一区二区三区| 欧美亚洲免费在线| 欧美一级淫片aaaaaaa视频| 亚洲免费中文| 欧美中在线观看| 久久婷婷激情| 欧美暴力喷水在线| 亚洲高清视频一区二区| 欧美激情一区二区三区| 亚洲国产乱码最新视频| 欧美极品aⅴ影院| 欧美国产另类| 亚洲第一精品夜夜躁人人爽| 亚洲免费av观看| 一本色道久久88亚洲综合88| 亚洲一区二区三区四区中文| 午夜精品久久久久| 久久久97精品| 欧美电影电视剧在线观看| 亚洲精品国产精品乱码不99| 亚洲日本欧美| 亚洲一区不卡| 久久一二三国产| 欧美激情女人20p| 国产精品激情av在线播放| 国产一区二区成人| 亚洲精品小视频在线观看| 亚洲一区欧美| 久久综合色天天久久综合图片| 欧美成人免费在线观看| 99re66热这里只有精品4| 午夜精品美女久久久久av福利| 久久久久综合网| 欧美日韩亚洲不卡| 国语自产在线不卡| 国产精品99久久久久久久女警 | 亚洲第一精品夜夜躁人人躁| 日韩一二三区视频| 久久久久成人精品| 亚洲精品网址在线观看| 新狼窝色av性久久久久久| 欧美黄色成人网| 国产日韩精品久久| 一区二区三区黄色| 欧美1区视频| 亚洲欧美日韩一区| 欧美日韩日韩| 亚洲国产91精品在线观看| 亚洲欧美在线看| 亚洲日本免费| 美女主播视频一区| 国产亚洲欧美日韩一区二区| 99精品欧美一区二区三区综合在线| 久久国产欧美| 一区二区三区色| 欧美乱大交xxxxx| 亚洲国产mv| 久久视频在线视频| 亚洲欧美国产高清| 欧美日韩麻豆|