在Tortoise SVN中,有一个名为Repo-Browser的工具,我们可以简单地删除所有文件并再次添加新文件。
那么,在GIT中如何做到这一点呢?
该repo没有托管在GITHub上,并且除了repo url之外没有界面。
为什么要这样做?
我创建了一个本地repo,并将其推送到远程主机,但后来发现它在错误的目录中。因此,在本地很容易处理,只需…
但我遇到了错误。
那么,在GIT中如何做到这一点呢?
该repo没有托管在GITHub上,并且除了repo url之外没有界面。
为什么要这样做?
我创建了一个本地repo,并将其推送到远程主机,但后来发现它在错误的目录中。因此,在本地很容易处理,只需…
git init
git add .
git commit -m "New place commit;"
git remote add alias https://user@domain.com/reponame.git
git push alias master
但我遇到了错误。
To https://user@domain.com/reponame.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'user@domain.com/reponame.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
当我正在推送一个新的仓库时,一切都很好...所以我只想清除远程仓库,以便能够推送这个新的仓库...