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

隨筆 - 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>
            久久久久久亚洲精品中文字幕 | 亚洲五月婷婷| 欧美成人免费va影院高清| 久久全国免费视频| 亚洲国产高清一区| 亚洲国产日韩欧美一区二区三区| 欧美一区二区三区喷汁尤物| 狠狠色伊人亚洲综合网站色| 欧美~级网站不卡| 欧美jizz19hd性欧美| 一本大道久久a久久综合婷婷| 亚洲另类自拍| 国产精品综合av一区二区国产馆| 久久精品中文| 欧美国产精品久久| 亚洲性夜色噜噜噜7777| 欧美在线播放视频| 亚洲经典视频在线观看| 夜夜嗨av一区二区三区中文字幕 | 在线观看视频日韩| 亚洲片国产一区一级在线观看| 国产精品激情电影| 久久综合色一综合色88| 欧美成人免费观看| 欧美中文字幕在线播放| 美女国产一区| 久久成人一区二区| 欧美日韩mp4| 麻豆精品在线播放| 国产精品毛片| 亚洲欧洲综合另类在线| 国产三级欧美三级| 99国产一区| 亚洲黄色影片| 欧美一区二区日韩一区二区| 一区二区三区精品视频在线观看| 亚洲精品少妇| 欧美综合国产精品久久丁香| 一区二区三区欧美| 久久综合一区二区三区| 久久精品99国产精品日本| 欧美另类69精品久久久久9999| 久久久美女艺术照精彩视频福利播放 | 性做久久久久久| 欧美国产1区2区| 久久综合国产精品| 国产麻豆9l精品三级站| 夜夜精品视频一区二区| 亚洲精品一二区| 久久嫩草精品久久久精品| 亚洲欧美国产日韩天堂区| 欧美激情91| 亚洲欧洲一区二区在线观看| 91久久精品国产91久久| 久久九九久精品国产免费直播 | 精品粉嫩aⅴ一区二区三区四区| 亚洲午夜激情网页| 一区二区欧美国产| 欧美伦理一区二区| 亚洲片在线观看| 亚洲精品美女91| 欧美高清视频一区| 欧美激情片在线观看| 亚洲欧洲一区二区三区在线观看| 久久夜色撩人精品| 久久久爽爽爽美女图片| 狠狠色丁香久久婷婷综合_中| 欧美一区二区三区另类| 久久久99精品免费观看不卡| 国产一区二区成人| 欧美中文字幕视频| 久久人人爽爽爽人久久久| 国产偷国产偷亚洲高清97cao| 香港久久久电影| 老司机午夜精品视频| 伊人婷婷久久| 欧美成黄导航| 一本色道久久综合亚洲精品婷婷| 中文日韩电影网站| 欧美日韩一卡| 亚洲欧美日本国产有色| 久久爱91午夜羞羞| 亚洲大片一区二区三区| 欧美大片免费观看| 中文成人激情娱乐网| 久久精品国产在热久久| 在线观看亚洲精品视频| 欧美人成网站| 午夜精品在线| 亚洲电影天堂av| 一区二区三区四区五区在线| 国产欧美一区二区在线观看| 久久久久久久久蜜桃| 亚洲国产片色| 欧美一区二区视频免费观看| 在线成人小视频| 欧美三级黄美女| 欧美综合国产| 亚洲美女免费视频| 久久国产黑丝| 99这里只有久久精品视频| 国产欧美日韩亚州综合| 欧美a级理论片| 亚洲欧美日韩综合| 欧美日韩黄色大片| 久久久久免费视频| 中日韩在线视频| 亚洲电影有码| 久久婷婷色综合| 亚洲综合三区| 日韩一级片网址| 在线精品视频免费观看| 国产精品久久久久久久久免费樱桃 | 好看的亚洲午夜视频在线| 欧美国产日韩视频| 久久国产精品久久国产精品 | 美女黄色成人网| 欧美一区二区三区的| 日韩视频精品在线| 亚洲精品免费看| 欧美aⅴ一区二区三区视频| 亚洲人成网站999久久久综合| 午夜精品一区二区三区四区| 久久精品视频导航| 亚洲激情啪啪| 国产精品女人毛片| 欧美日韩免费看| 欧美一级视频| 一区二区三区欧美成人| 亚洲成人在线视频播放 | 亚洲一区二区三区高清| 国内精品久久久久影院色| 国产精品激情av在线播放| 欧美国产日韩在线| 久久免费国产精品1| 欧美在线观看一区二区| 欧美亚洲免费电影| 亚洲欧美中文在线视频| 一本久道久久久| 亚洲最新视频在线| 亚洲精品日产精品乱码不卡| 欧美激情网友自拍| 欧美成人精品| 欧美激情视频一区二区三区免费 | 一区二区三区免费看| 一本色道久久综合亚洲精品高清| 91久久精品日日躁夜夜躁国产| 欧美黑人多人双交| 亚洲成人在线网站| 亚洲国产精品久久久久久女王| 亚洲福利专区| 亚洲精品裸体| 亚洲天天影视| 性欧美xxxx大乳国产app| 午夜一级久久| 久久亚洲不卡| 欧美日韩亚洲激情| 国产精品久在线观看| 国产一区二区欧美| 亚洲国产精品一区二区www| 9i看片成人免费高清| 亚洲综合欧美| 久久久久久国产精品一区| 久久综合五月天婷婷伊人| 亚洲高清资源| 中文在线资源观看网站视频免费不卡 | 欧美成人视屏| 99re66热这里只有精品3直播| 亚洲制服丝袜在线| 久久精品人人做人人综合| 裸体歌舞表演一区二区| 欧美国产综合视频| 国产精品乱码人人做人人爱| 精品91视频| 免费在线观看精品| 亚洲精品色婷婷福利天堂| 亚洲欧美资源在线| 女主播福利一区| 国产精品久久国产愉拍| 一区视频在线播放| 亚洲影视九九影院在线观看| 美女日韩欧美| 亚洲精品美女在线观看| 性欧美长视频| 欧美日韩国产免费| 国产主播一区二区三区| 中文av字幕一区| 米奇777在线欧美播放| 一区二区三区高清| 另类成人小视频在线| 国产精品久久久久9999吃药| 在线国产精品一区| 久久se精品一区精品二区| 欧美成人中文| 久久国产精品72免费观看| 欧美高清在线播放| 在线看无码的免费网站| 香蕉成人啪国产精品视频综合网| 91久久午夜| 久久综合中文|