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

隨筆 - 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>
            久久精品日韩| 欧美在线视频二区| 亚洲国产91| 欧美黄污视频| 中日韩美女免费视频网址在线观看| 亚洲精品乱码久久久久久日本蜜臀 | 亚洲国产成人在线| 欧美欧美全黄| 欧美制服丝袜第一页| 久久成人精品一区二区三区| 亚洲成人在线免费| 91久久精品美女| 国产精品一区二区在线观看不卡| 欧美一站二站| 欧美成年人视频网站| 亚洲影院在线| 久久精品在线视频| 亚洲视频axxx| 久久成人免费视频| 在线亚洲激情| 久久精品一本久久99精品| 99av国产精品欲麻豆| 亚洲视频1区2区| 亚洲国产日韩欧美一区二区三区| 一本久久综合亚洲鲁鲁五月天| 国产亚洲女人久久久久毛片| 亚洲国内精品| 狠狠爱成人网| 亚洲视频国产视频| 亚洲片在线资源| 亚洲自拍电影| 99在线观看免费视频精品观看| 亚洲一区精品在线| 夜夜躁日日躁狠狠久久88av| 午夜亚洲一区| 亚洲午夜在线视频| 欧美精品啪啪| 欧美成人久久| 红桃视频成人| 亚洲综合好骚| 亚洲视屏在线播放| 欧美精品v国产精品v日韩精品| 欧美专区亚洲专区| 国产精品h在线观看| 亚洲国产欧美一区| 在线观看91精品国产入口| 亚洲免费在线观看视频| 亚洲一区二区高清视频| 欧美精品九九| 亚洲欧洲日本在线| 亚洲日韩欧美视频一区| 久久久久久久久综合| 久久久久国产免费免费| 国产欧美日韩免费| 亚洲一区3d动漫同人无遮挡| 一区二区高清| 欧美日韩免费视频| 亚洲毛片av| 正在播放欧美一区| 欧美精品91| 日韩亚洲精品视频| 久久最新视频| 欧美第一黄色网| 亚洲日韩中文字幕在线播放| 欧美华人在线视频| 亚洲美女中出| 亚洲欧美韩国| 国产日韩专区| 久久久青草青青国产亚洲免观| 久久久国产精品亚洲一区| 国语精品中文字幕| 久久久久久综合| 欧美成人一二三| 亚洲精品综合精品自拍| 欧美日韩国产综合视频在线观看中文 | 亚洲精品视频中文字幕| 一区二区精品| 国产精品视频免费一区| 久久av资源网站| 欧美成年人网站| 亚洲美女精品成人在线视频| 欧美三级网址| 欧美一区二区在线免费观看| 免费观看成人| 一本色道久久综合亚洲91| 欧美调教vk| 久久激情一区| 亚洲日本欧美日韩高观看| 亚洲男人第一网站| 影音先锋成人资源站| 欧美国产亚洲精品久久久8v| 99ri日韩精品视频| 久久免费黄色| 亚洲色在线视频| 韩日欧美一区二区| 欧美色中文字幕| 欧美亚洲综合另类| 亚洲精选视频在线| 久久爱另类一区二区小说| 亚洲国产日韩在线| 国产精品夜色7777狼人| 免费亚洲视频| 欧美亚洲一级| 99re8这里有精品热视频免费| 久久久天天操| 欧美福利在线观看| 亚洲一区精彩视频| 亚洲精品午夜| 麻豆精品国产91久久久久久| 亚洲一二三四区| 亚洲国产黄色| 国内精品亚洲| 国产精品视频男人的天堂| 欧美激情国产日韩| 久久久久久久综合狠狠综合| 一本色道婷婷久久欧美| 欧美激情一区二区三区全黄| 久久av在线看| 亚洲一区二区欧美日韩| 亚洲欧洲日本国产| 在线观看成人一级片| 国产欧亚日韩视频| 欧美午夜宅男影院在线观看| 欧美国产日产韩国视频| 久久男人av资源网站| 午夜精品久久久久影视| 99精品国产热久久91蜜凸| 91久久午夜| 欧美激情一区二区三区全黄| 免费久久99精品国产自| 久久久欧美精品| 国产精品久久久久久久久| 欧美精品色综合| 欧美久久综合| 欧美精品一区二| 欧美日本不卡| 欧美日韩一区二区视频在线观看 | 久久久久久色| 欧美在线免费观看亚洲| 午夜在线观看免费一区| 欧美一级在线视频| 欧美一级视频精品观看| 香蕉成人啪国产精品视频综合网| 亚洲视频在线观看三级| 这里只有精品电影| 亚洲在线不卡| 欧美一区日韩一区| 久久久久久久激情视频| 麻豆成人小视频| 欧美精品日韩| 国产精品黄页免费高清在线观看| 欧美特黄一级| 国产午夜精品美女视频明星a级| 国产偷久久久精品专区| 国内免费精品永久在线视频| 亚洲二区视频| 亚洲私人黄色宅男| 欧美一区二区精品| 模特精品裸拍一区| 亚洲日本在线观看| 亚洲一区二区网站| 久久久综合精品| 欧美片第1页综合| 国产精品美女在线| 亚洲国产成人一区| 亚洲深夜激情| 久久狠狠久久综合桃花| 欧美ed2k| 正在播放亚洲一区| 久久久久国产一区二区| 欧美久久视频| 国产一二三精品| 亚洲精品视频免费| 欧美在线观看视频在线| 欧美成人免费va影院高清| 一本色道久久综合亚洲精品不| 久久国产手机看片| 欧美日韩国产一区二区三区地区| 国产女人18毛片水18精品| 亚洲国产日韩一区二区| 欧美一区二区三区视频免费播放 | 亚洲一区二区三区乱码aⅴ蜜桃女| 欧美在线看片| 亚洲精品一区二区三区不| 欧美亚洲尤物久久| 欧美日韩精品不卡| 在线成人激情| 午夜天堂精品久久久久| 亚洲人成网站精品片在线观看| 亚洲欧美综合v| 欧美日韩精品一区二区在线播放 | 另类天堂av| 亚洲一区二区三区久久| 欧美高清在线| 一区二区在线视频| 久久av一区二区| 亚洲一级高清| 欧美性大战久久久久久久| 亚洲精品永久免费| 欧美r片在线|