首页 > 其他分享 >GIT 基础操作-初始化

GIT 基础操作-初始化

时间:2023-04-29 19:23:35浏览次数:31  
标签:origin 初始化 git global cd add GIT README 操作

命令行说明

全局设置

git config --global user.name ""
git config --global user.email ""

创建一个新的存储库

git clone git@{...}.git
cd test
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

现有文件夹或Git存储库

cd existing_folder
git init
git remote add origin git@{...}.git
git add .
git commit -am 'init'
git push -u origin master

标签:origin,初始化,git,global,cd,add,GIT,README,操作
From: https://www.cnblogs.com/YangJieCheng/p/17364382.html

相关文章

  • GitHub 上有趣、入门级的开源项目HelloGitHub 升级版的 MiniGPT-4 搞定基于图片的文
    GitHub上有趣、入门级的开源项目HelloGitHub  https://github.com/521xueweihan/HelloGitHubhttps://github.com/521xueweihan/HelloGitHub/blob/master/content/HelloGitHub61.md 这里有实战项目、入门教程、黑科技、开源书籍、大厂开源项目等,涵盖多种编程语言Python......
  • PHP连接MYSQL的一些操作
    PHP5以及版本使用允许以下方式连接MYSQL:MYSQLiextensionPDO(PHPDataObjects)1.连接MYSQL//MYSQLi-面向对象<?php$servername="localhost";$username="username";$password="password";//创建连接$conn=newmysqli($sername,$username,$p......
  • 基本 操作
    进入编辑模式在打开的文件中,按下i键进入编辑模式。保存修改并退出在编辑模式下,按下Esc键回到命令模式,然后输入:wq命令保存修改并退出。放弃修改并退出在编辑模式下,按下Esc键回到命令模式,然后输入:q!命令放弃修改并退出。移动光标在命令模式下,使用箭头键......
  • PyTorch常用操作
    数据集加载1.网络数据集加载数据集:https://pytorch.org/vision/stable/datasets.htmlimporttorchvision.datasetsasdatasetsimporttorchvision.transformsastransforms#定义数据集变换(将图像转换为张量以及对图像进行归一化的操作)transform=transforms.Compose([......
  • C# 序列化操作类
    usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Linq;usingSystem.Runtime.Serialization.Formatters.Binary;usingSystem.Text;usingSystem.Threading.Tasks;namespaceEIMS{[Serializable]publicstaticclass_Serial......
  • C# MD5 加密操作类
    usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Globalization;usingSystem.Security.Cryptography;usingSystem.IO;usingSystem.ServiceModel;namespaceEIMS{publicstaticclassMD5Helper{#regionMD5加密......
  • 一天学完git
    git:一个开源的分布式版本控制系统,可以有效、高速地处理从很小到非常大的项目版本管理。(分布式体现在远程仓库和本地仓库)github/gitee:一个面向开源及私有软件项目的托管平台,因为只支持git作为唯一的版本库格式进行托管。 ......
  • 对文件的操作
    /*ifstream读文件ofstream写文件fstream读写文件这个三个的头文件是fstreamofstreamoutfile;*/写文件 ofstream h1; /fstreamh1h1.open("user.txt");h1<<name<<"\t";//"\t"换行h1<<age<<endl; //endl表示换行h1.clos......
  • git与github(结合clion操作)
    对自己学习git的一个记录,由于刚开始接触git,所以没有对于git做深入解释和说明,仅供参考,如有理解不对的地方或者需要改进的地方敬请指出。 用到的git命令:gitinit//初始化gitadd.//添加所有文件gitadd文件名//添加指定文件git......
  • Shell列表操作
    字符串列表定义方法已空格分割a=(1234)输出列表所有元素echo${a[*]}输出列表下标echo${!a[*]}输出列表长度echo${#a[*]}列表循环foriin${a[*]}doecho$idone使用列表实现数值排序#冒泡算法a=(1345078974)#获取列表长度len=${#a[@]}echo......