Preface: Someone asked me how I uploaded my files to my new GitHub warehouse, and I saw some people in the group asking. So I'm going to write an article, record how to upload the local new project to their GitHub warehouse, hoping to help people who still do not understand, the big God, Daniel, Danale please ignore.
1. Create a new local libraryFind a path to create a new folder, or you can use Git-b
here, will be more than a. git folder, which means that local git was created successfully. Right-click Git bash to go to the GIT command line and configure SSH key to upload the local repository to GitHub.3. Configure Git(1) First create the SSH key locally;$ ssh-keygen-t rsa-c "[email protected]"The following [email protected] changed to your mailbox, then asked to confirm the path and enter the password
, enter the title, and paste the key. In git bash, enter:$ Ssh-T [email protected]If this is the first time, you will be prompted whether to continue. If you enter yes, you will see: You 've successfully authenticated, but GitHub does not provide shell access. This indicates that GitHub has been successfully connected.Next, we need to upload the local repository
In the use of tools to manage GitHub before, has always been a command to manage, sometimes it seems very cumbersome and inefficient, so for the summary of the Pycharm and GitHub between the management of small dongdong.This blog does not detail Git's use of techniques or principles, as it is for children's shoes that have learned that Git wants to be more efficient or have a lazy cancer attack, so children
clone it to the desired location
But I am still used to using git bush
Git clone https://github.com/zilianliuxue/Demo.git
The repository folder is generated under the corresponding file address.Initial folderRight-click the Directory and select Git Bash HereEnter the github user name Email:Git config-global user. name "github user name"Git config-global user.
How to upload your local code to GitHubDescription: Win7 operating system, client adoption Git .1. Register your GitHub accountRegister your GitHub account with https://github.com. Then log in and authenticate with the mailbox.2. Build a warehouse on GitHub (1) Click the "New Repository" button on the right to create a new warehouse.(2) After filling in the name
: Is you sure want to continue connecting (yes/no)?Input: Yes EnterDisplay: Hi yourname! You've successfully authenticated, but Github does not provide shell access.Next, demonstrate a github HelloWorld example:
Go to your GitHub account and click New Repository
Repository Name Input Hello
Description Enter some description information about the warehouse
Objective:GitHub is a git-based code hosting platform, where paid users can build private warehouses, and our general free users can only use public repositories, which means the code is open. This is enough for the average person to have a public warehouse.Steps:1. Register your account and create a warehouseThe first step to using GitHub is, of course, registering a GitHub account. After that you can crea
Init hear, git Bash, git Gui, the installation is successful.Configure GitLet's find a place in the computer's hard drive to store the local warehouse, for example, we set up the local repository under the C:\MyRepository\1ke_test folderTo enter the 1ke_test folder, right-click the following steps:1) in the local repository, right-click Git Init here to get a more. Git folder, which means that local git was created successfully. Right-click Git
GitHub.Passive wake-up, will not consume unnecessary resources, if support is necessarily the first option. 4. Access to information (feasibility analysis)
GitHub support Webhooks and a large number of third-party services, can be very good for the repo push and other operations to respond.
What did Webhooks do?When GitHub receives a repo action, a POST request with a description of the action is sent to t
Basic syntax for BASH
The simplest example of--hello world!
About input, output, and error outputs
Rules for variables in BASH (similarities and differences with C language)
Basic Process Control syntax in BASH
Use of functions
2.1 Simplest example of--hello world!Almost all of the first examples of programming books to readers are t
Since the use of GitHub, it has been uploading files to the repository online at the GitHub site, but sometimes the upload failed because of network or computer reasons. The most important reason is that I am used to editing locally and then uploading GitHub together. Read a few tutorials to summarize the most suitable for their own relatively simple method.Two w
Have always wanted to learn the use of GitHub, very early registered account, but always thought it was difficult, dare not try. and want to share with others what they have done,At the same time is a good place to host code, and finally the bite to try how to upload code, and now found that the original is not as complex as they imagined.First step: Install the Git install Success flag on your computer: Right click on git GUI here and git
Reprint: https://blog.csdn.net/zamamiro/article/details/70172900
The installation of GIT will not be said.
The first step: we need to first create a local version of the library (in fact, a folder).
You can either right-click the new folder or right-click on the Git Bash Command Line window to create it by command.
Now I'm creating a test folder on the desktop from the command line (you can also create this folder anywhere else) and go into this fold
Reprint: https://blog.csdn.net/zamamiro/article/details/70172900
git installs without saying.
The first step: we need to first create a local repository (in fact, a folder).
You can right-click to create a new folder, or you can open a git bash command-line window by right-clicking the command.
Now I'll create a new test folder on my desktop from the command line (you can also make this folder anywhere else) and go to this folder
Step Two: Turn thi
The simplest example of--hello world!
About input, output, and error outputs
Rules for variables in BASH (similarities and differences with C language)
Basic Process Control syntax in BASH
Use of functions
2.1 Simplest example of--hello world!Almost all of the first examples of programming books to readers are the Hello World program, so let's start with this example today to learn more
Basic syntax for BASH
The simplest example of--hello world!
About input, output, and error outputs
Rules for variables in BASH (similarities and differences with C language)
Basic Process Control syntax in BASH
Use of functions
2.1 Simplest example of--hello world!Almost all of the first examples of programming books to readers are t
Reprint Please specify source: http://www.cnblogs.com/cnwutianhao/p/6642887.htmlThis article should be the latest, most complete, and most reliable GitHub installation process for uploading code.1.Git Official website: https://git-scm.com/2.Windows version directly click on the lower right corner of the blue computer to download, Https://git-scm.com/download/win3. Install the GIT clientClick Install to start the installationClick Finish to close (do n
Use Hexo to quickly build a blog and deploy it to Github
This article aims to record the process of setting up a blog through Hexo and deploying it on Github. It will also help me learn and reference it quickly in the future. For more details or official documents, click the official Hexo document.Prerequisites
Installing Hexo is very simple. Pre-installation required:
Node. js
Git
Install and configure
All right, apply and drop, be cautious, use Git stash list to see if the record was actually deleted
git stash clear Empty staging Area All records, drop deletes only one, drop can be followed by stash_id to delete the specified record, or delete the nearest
Conflict ResolutionSuppose I change the file test.txt at the same time on the a branch and the local branch, and when the merge is over, there will be a conflict.Use Git diff to view conflictsThe conflict resolution
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.