
目录git在github上创建仓库修改远程仓库为giteesvngit在github上创建仓库安装 Git如果您的电脑上还没有 Git请先安装它。Windows: 前往 Git 官网 下载并安装 Git for Windows。macOS: 使用 Homebrew (brew install git) 或从官网下载。Linux (Ubuntu/Debian): 打开终端运行 sudo apt install git安装完成后在终端或命令提示符中输入 git --version 来验证是否安装成功。配置 Git 用户信息提交代码时需要记录是谁提交的所以需要先配置您的用户名和邮箱。gitconfig--globaluser.nameYour GitHub Usernamegitconfig--globaluser.emailyour-emailexample.com本地项目与全新 GitHub 仓库建立连接的“标准模板”gitinitgitadd.gitcommit-m初始提交# 4. 连接远程仓库gitremoteaddorigin https://github.com/[user_name]/[repo_name].git# 5. 推送代码gitbranch-Mmaingitpush-uorigin main修改远程仓库为gitee在 Gitee 上创建一个新仓库不要勾选“初始化仓库”以免和后面推送的内容产生冲突。修改本地 Remote 地址打开终端查看当前的远程仓库地址gitremote-v修改 origin 的 URL指向新仓库地址。gitremote set-url origin https://gitee.com/YOUR_USERNAME/your-repo.git推送代码到 Giteegitpush-uorigin--all//推送所有分支并把本地分支和 Gitee 上的同名分支关联起来svn全局忽略配置仅本地生效图形化界面 (TortoiseSVN)在任意文件夹空白处右键 - TortoiseSVN - Settings。在弹窗左侧选择 General在右侧找到 Global ignore pattern 输入框。填入忽略模式各模式之间用空格分隔例如 *.o *.class .vscode直接编辑SVN配置文件找到配置文件C:\Users\你的用户名\AppData\Roaming\Subversion\config打开 config 文件找到 [miscellany] 段落。移除 # global-ignores 前的 # 注释符并添加你的规则用空格分隔global-ignores*.o *.so *.pyc __pycache__ .DS_Store