5
我通過拖動鏈接克隆了GitHub的Gist到我的桌面。克隆的要點,但想重命名文件夾
但是,文件夾名稱是不具說明性的長整數。
如何重命名文件夾並仍然能夠繼續將更新從該文件夾提交給GitHub上的Gist?
有沒有可能?
我通過拖動鏈接克隆了GitHub的Gist到我的桌面。克隆的要點,但想重命名文件夾
但是,文件夾名稱是不具說明性的長整數。
如何重命名文件夾並仍然能夠繼續將更新從該文件夾提交給GitHub上的Gist?
有沒有可能?
只需重命名文件夾! git
不關心文件夾的名稱,它只需要裏面有一個.git
-文件夾。 你甚至可以提供文件夾的名稱克隆到第二個參數來混帳克隆:
git clone repository name-of-folder
也看到這個殼成績單看出,Git並不關心名字:
[[email protected]/tmp]git clone https://gist.github.com/9028551.git
Cloning into '9028551'...
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
Checking connectivity... done
[[email protected]/tmp]mv 9028551/ example-folder/
[[email protected]/tmp]cd example-folder/
[[email protected]/tmp/example-folder master]touch otherfile
[[email protected]/tmp/example-folder master]git add otherfile
[[email protected]/tmp/example-folder master]git commit -m "Add otherfile"
[master 5f80cf2] Add otherfile
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 otherfile
[[email protected]/tmp/example-folder master]git push
Username for 'https://gist.github.com': timwolla
Password for 'https://[email protected]':
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 289 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://gist.github.com/9028551.git
47890af..5f80cf2 master -> master
作爲參考,這是要點:https://gist.github.com/TimWolla/9028551
我試過那個人:(但然後github扔「失敗的標題」消息:( – Noitidart
@Noit你應該炫耀一些更多的信息,然後。 – TimWolla
它的作品,我不知道2年前我在做什麼哈哈。謝謝蒂姆! – Noitidart