首页 > 其他分享 >git初始化操作

git初始化操作

时间:2023-02-17 10:47:29浏览次数:39  
标签:origin 初始化 git liulei1 existing add test 操作

Git global setup
git config --global user.name "liulei1"
git config --global user.email "[email protected]"
Create a new repository
git clone ssh://[email protected]:8122/liulei1/test.git
cd test
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Push an existing folder
cd existing_folder
git init
git remote add origin ssh://[email protected]:8122/liulei1/test.git
git add .
git commit -m "Initial commit"
git push -u origin master
Push an existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin ssh://[email protected]:8122/liulei1/test.git
git push -u origin --all
git push -u origin --tags

标签:origin,初始化,git,liulei1,existing,add,test,操作
From: https://www.cnblogs.com/52ld/p/17129284.html

相关文章

  • 退出登录操作
    asynclogout(){try{awaitthis.$confirm("确定退出吗?");}catch(error){returnconsole.log(error);}//要退出......
  • 安装Linux操作系统,学习Linux基础(必做)
    掌握了Linux命令的学习方法https://www.cnblogs.com/bky20221301/p/16652478.html......
  • hdfs操作——hdfs的shell命令和hdfs的JavaAPI操作
    hdfs解决hadoop海量数据的存储。shell命令(所有hadoopfs可由hdfsdfs代替)(1)在hdfs上创建目录hadoopfs-mkdir目录名(2)本地文件的上传hadoopfs-copyFromLoc......
  • Jenkins+Net Core3.1+Gitlab实现 CICD(未完成版)
    架构说明:由浅入深,我们暂时不考虑分布式,安装Jenkins到用户服务器进行CICD需要两台服务器Gitlab:192.168.232.128:12080源代码仓库,可以参考《安装git......
  • 理解信号灯和P\V操作原语
    信号灯和P\V操作原语在复习操作系统进程及进程管理这一章节的时候,对信号灯和P、V操作有点不理解,于是尝试用生活中的例子来解释一下。首先,简单介绍一下信号灯,及其特点......
  • Git 多账号 SSH 配置
    【前言】在企业工作环境中,我们一般会用企业的github或gitlab等账号,同时也会配置相关的ssh访问方式。当我们想要同时操作个人github或gitlab仓库时,就无法重复使用现有的ss......
  • Vue框架:5、购物车案例,v-model进阶操作,与后端交互的方式
    目录前端开发之Vue框架一、购物车案例1、基本购物车2、购物车-优化二、v-model进阶操作三、与后端交互1、jqery对象的ajax2、fetch发送ajax请求3、axios发送ajax请求4、展......
  • Git笔记1
    记录一些语法,希望自己看到的时候可以起到复习的作用echo写入echo"Thisisatext">>Filenamebranch分支展示$gitbranch*devmain星号代表当前分支cat......
  • Git使用记录
    首先在电脑上安装Git,安装成功后,可以开始配置了!一、入门使用1、选择文件路径,右键,gitbashhere 输入gitconfig-l查看配置      2、设置用户名与邮箱 ......
  • Django操作redis
    一、环境安装基本环境:Python环境:Python3.8.16Django环境:4.1redis环境:参考搭建https://www.cnblogs.com/yclh/p/14742336.html并且已经添加了myApp的应用 安装red......