国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

gitlab - What to do if a .git file is accidentally deleted from a git-hosted project
怪我咯
怪我咯 2017-05-02 09:39:45
0
4
1010

In the managed project directory, git -rf .git was executed incorrectly, resulting in the deletion of the .git file. Now the code cannot be submitted. What should I do?

怪我咯
怪我咯

走同樣的路,發(fā)現(xiàn)不同的人生

reply all(4)
給我你的懷抱

If you can’t find it in the recycle bin, there seems to be nothing you can do. This .git file is used to track warehouse changes.

伊謝爾倫

Reswitch a directory git clone遠(yuǎn)程倉庫 ,然后將現(xiàn)有倉庫覆蓋原有倉庫后執(zhí)行
git add --> git commit -> git push

給我你的懷抱

I don’t know if you mean to delete the .git in the warehouse or delete your local .git.

If you delete the .git of the warehouse, you can only rebuild it and git init --bare創(chuàng)建一個新的倉庫,然后在本地 git add remote添加新倉庫,然后 git push xxx xxx --force submit it.

If only the .git of your local project is deleted, that’s easy to handle.
Change the directory and clone it again, switch to the corresponding branch, and then copy all the files and directories in the deleted .git directory to overwrite the files in the new clone. Then commit and push.

This is also an advantage of git distribution, you are not afraid of accidental deletion

習(xí)慣沉默

It doesn’t matter if you delete the local one. If there is a remote Repo, just clone it again.

Moreover, if you execute git rm -rf .git, this will not delete your physical files.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template