Giter Club home page Giter Club logo

three-dimensional-reconstruction's Introduction

Three-dimensional-reconstruction

Three-dimensional reconstruction

git操作指南

一:建立自己的仓库指南

1. 下载git,用于管理本地的仓库

git仓库的地址:Git (git-scm.com)

2.配置自己的本机(使用的是ssh链接)

git config --global user.name "这里输入你在GitHub的账户名"
git config --global user.email "这里输入你在GitHub的注册邮箱名"

这里主要配置的git仓库账号信息,方便之后和github关联

接下来配置ssh,方便和github上面的仓库连接

cd ~/.ssh 
ls

查看是否存在id_rsa 和 id_rsa.pub两个文件,该文件在用户/administrator/.ssh文件下面

如果没有,就需要创建一个这样的文件

ssh-keygen -t rsa -C "这里输入你在 GitHub 的注册邮箱"

之后再执行这样的命令查看是否存在这样的文件

cat id_rsa.pub

该命令会显示公钥,需要将公钥和github的自己账号进行配置,在github中选择setting/SSH and GPG keys/new SSH key将公钥复制粘贴到里面,名字随意

测试一下SSH是否安装成功

Hi Juliecodestack! You've successfully authenticated, but GitHub does not provide shell access.

显示上面表示安装成功

3.上传自己项目

首先在github中建立一个仓库

在打开git base

git clone ssh地址(这里面不是http的地址)
cd 文件目录

进入自己的文件目录

git add 加上自己需要提交的文件名字
git add . //表示提交所有的文件
git commit -m '写上自己的提交记录'
git push //就直接推送到github

二. 多人管理仓库

多人管理的时候,团队成员不适合使用ssh进行代码提交,因为必须将协作者的公钥放在创建者的SSH key中,但是如果团队成员已经有了一个关联的github账号,这种方法行不通,一个账号只能关联一个公钥,接下来就使用http进行项目管理

仓库的地址:https://github.com/smalltavern/ErrorDetection.git

git clone https://<your_token>@github.com/<username>/<repo>.git //这里面是添加了token

your_token写上token,这样才能够拉代码

cd repo //进入对应的文件目录
git add 某文件
git commit -m "提交文件的描述信息"
git remote add origin <提交到的仓库地址>(记得仓库地址里面要加token,如果已经和远程仓库连接,则不需要)
git push -u origin master

three-dimensional-reconstruction's People

Contributors

xzr52 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.