Giter Site home page Giter Site logo

msp430project's Introduction

MSP430Project

浙江大学暑期课程《电子综合设计》课程设计

注意事项

现在只把*.c和*.h代码放上去,项目要用自己的。每次从github上面pull下来之后要自行进行复制粘贴(本地新建一个文件夹,专门负责本地的git,别和CCS里面的弄混了)。就是说,.c和.h代码更新的过程可以自动完成。但是手动复制粘贴还是不能少。(可以试试整体复制粘贴导入)下面是git的简易教程。

Git使用方法-简版(转自daibi07)

命令行操作

1. 创建远程仓库(一组创一个即可)

github上面create repository,注意不要用README.md初始化仓库,即创建时下图的这个别选。

UM4yWV.jpg

2. 使用git命令,在本地克隆远程仓库

git clone https://github.com/daibi07/Test1.git

3. 设置签名

git config user.name "你的用户名"

git config user.email "你的邮箱"

也可以进行全局设置,也就是clone到本机上的所有项目都用一个签名:

git config --global user.name "你的用户名"

用此命令查看设置: git config -l

4. 项目修改后提交到本地仓库

添加文件修改:git add .

提交文件修改到本地仓库:git commit -m "XXXX"(里面就是填个版本号吧)

5. 将本地仓库提交到远程仓库(push)

先通过命令git remote show [remote-name] 查看某个远程仓库的详细信息,比如要看所克隆的origin仓库,可以运行:

git remote show origin

如果这个远程仓库的地址与你所想提交的地址不符,可以进行修改:

git remote rm origin

git remote add origin your_remote_url(如:https://github.com/daibi07/Test1.git)

提交到远程仓库:git push -u origin master

push时可能会报错说“更新被拒绝,因为远程仓库包含您本地尚不存在的提交”,可参考此解决方法

6. 将远程仓库同步到本地(pull)

git pull origin master

参考资料

https://github.com/daibi07/Test/edit/master/README.md

msp430project's People

Contributors

zhongmou-lilsister avatar

Watchers

 avatar

msp430project's Issues

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.