git本地备份与指定不需要管理文件
git本地备份与指定不需要管理文件 git 在本地备份 备份文件夹操作 工作文件操作 指定不需要管理的文件 git 在本地备份 备份文件夹操作 在本地备份文件夹克隆一个不带工作区的仓库: 哑协议: git clone --bare <workspace>/.git yourwork.git git clone --bare file:///<workspace>/.git yourwork.git 工作文件操作 若是没有关联远端仓库,在本地工作文件直接 git push 会提示添加远端仓库。 $ git push fatal: No configured push destination. Either specify the URL from the command-line or configure a remote repository using git remote add <name> <url> and then push using the remote name git push <name> 看到以上信息,按照提示进行添加。 在项目仓库中,将本地仓库与远端备份仓库进行连接: 添加远端仓库: git clone --bare <workspace>/.git yourwork.git git remote add <name> file:///<workspace