当前位置:网站首页>How I use git to upload local code to GitHub is worth learning
How I use git to upload local code to GitHub is worth learning
2020-11-10 11:27:00 【osc_47pscir3】
background : Recently, a bidding system has been developed , How I use JSP Build an online bidding system on the Internet , To promote the paperless website , Process electronization , The development of Intelligent Management .
Use git Upload .
First of all, you have to have git Tools and github account number , You don't have to prepare in advance . My local folder already has the database and source code , I operate directly in that folder .
Go into the folder . Right mouse button , open git -> Git Bash Here -> git init. After executing the command, create one in the directory .git Folder .
git init
Check the status
git status
git add + The file name to be added perhaps git add --all Add all the files , I am here
git add --all
This command will put all files in the current path , Add to the list of files to be uploaded .
take add The file of commit To the warehouse , After adding , Finally submit it ,git commit -m “ Modification Description ”.-m The following is a description of this operation , Add a simple explanation of what you've modified or re uploaded , People will know what happened when they read it . Then again, git status Check the status , as follows , Added successfully :
git commit -m " Submit source code "
Go to github Create your own Repository, Click on Create repository, Step by step, you can go on , After successful creation, get the created warehouse https Address
Associate the local warehouse with github On , What I use here is https, You can also use ssh, Please refer to my last article for public key configuration :gitlab perhaps gitee Generate / add to SSH The public key solution
Upload code to github Remote warehouse . After the execution , If there is no abnormality , Wait for the execution to finish and upload successfully , You may be asked to type Username and Password, You just type github The account number and password of
git push -u origin master
stay github Check the committed main branch ,ok Be accomplished , Refueling workers
版权声明
本文为[osc_47pscir3]所创,转载请带上原文链接,感谢
边栏推荐
猜你喜欢
GNU assembly language uses inline assembly to extend ASM
监控系统选型,这篇不可不读!
网络时间服务器(医院时钟系统)相关问题汇总
python math类
中小企业为什么要用CRM系统
如何更好地理解中间件和洋葱模型
To speed up the process of forming a global partnership between lifech and Alibaba Group
[operation tutorial] introduction and opening steps of easygbs subscription function of national standard gb28181 protocol security video platform
Cloud database as low as 20% off, have you seen it?
2020CCFBDCI训练赛之室内用户时序数据分类baseline
随机推荐
C++ 标准库头文件
带劲!饿了么软件测试python自动化岗位核心面试题出炉,你全程下来会几个?
Jsliang job series - 09 - hand written shallow copy and deep copy
CentOS7本地源yum配置
jsliang 求职系列 - 09 - 手写浅拷贝和深拷贝
我是如何使用git把本地代码上传到github上的,值得借鉴
Understanding recursion with examples
中小企业为什么要用CRM系统
Do not understand the code, can type can build a station? 1111 yuan gift bag to help you with one stop!
用”软删除“来删除数据库中的数据
GNU assembly language uses inline assembly to extend ASM
Q & A and book donation activities of harbor project are in hot progress
GNU assembly basic mathematical equations multiplication
Python math class
ASP.NET Core framework revealed
专业之旅——GitHub 热点速览 Vol.45
[Senior Test Engineer] three sets of 18K automated test interviews (Netease, byte jump, meituan)
js 基础算法题(一)
How to view the establishment of the new retail business department of Alibaba cloud?
2020-11-07