To create a repository step:1. Create a local folder2. Go to the folder and executeGit initgit will versioning files in this folder after initialization3. Create a repository on a remote server (such as GitHub) and note the SSH4. ImplementationGit remote Add you can then submit the code to the corresponding repository by this name5. Submit CodeTo create a git configuration before repository:git config--global user.name "Your name"
1. Create a git repository???? Git init--bare library name????2. Clone the resource under the user folder???? git clone ???? Note: The user directory must be empty when clone?3. Create a file that is included in version control.???? git add ???? The first execution would warn: WARNING:LF will is replaced by CRLF in Rea
git clone [email protected]:server/bilinserver.git target path----------------server pull a git repository to local
Git branch--------------------------------------------------------------------see where all the branches on the local branch are currently in
git branch-a------------------------------------------
When writing operations scripts in Python, it is often necessary to execute the commands of the Linux shell, the commands module in Python is dedicated to invoking the Linux shell command and returning the status and results, here are the 3 main functions of the commands mod
git clone https://github.com/JasonCheung2012/learngit.git #版本库网址
git add zhangjiethu.txt
Git commit-m "Add a File"
Git push-u Origin Master # submits your local repository to your GitHub account and asks you to enter your GitHub account number and password
Status of Git
Like I'm using Git clone giturl under Windows.Just prompt for SSL certificate problem:self signed CertificateThis problem occurs more frequently in Windows. I guess the main thing is that git itself is Linux-based, and on Windows, it's easy to miss some environments.Referring to some articles, the solution is "directly regardless of SSL certificate"-_-| | |Here's how:1. Create a temporary environment variab
ssh-t [email protected]//test connectiongit config--global user.name "Youname"git config--global user.email "you email address"Git init//Turn this directory into a repository that git can managegit add readme.md//file added to Repository git Add. Not only can be with a single file, but also with wildcards, you can foll
When writing operations scripts in Python, it is often necessary to execute the commands of the Linux shell, the commands module in Python is dedicated to invoking the Linux shell command and returning the status and results, here are the 3 main functions of the commands mod
Shell script Learning (III): Shell functions and some common symbols and commands
I. Shell functions
Like C, Shell functions encapsulate commands and statements that have fixed functions and are usually used repeatedly in a sing
| Introduction If you are using GIT with the command line, you can use the git status command to query which branch you are working on now, but it's hard to forget what branch you're under, so you have a mug with a wrong operation. It is no doubt convenient to display the branch in the Shell prompt, and no longer need to use the
1, download the installation methodHttp://jingyan.baidu.com/article/020278117cbe921bcc9ce51c.html2, common commandsOriginal address: http://www.admin10000.com/document/5374.htmlThe basic common commands for Git are:Git pull--rebase Origin masterGit pull Origin MasterMKDIR:XX (Create an empty directory XX refers to the directory name)PWD: Displays the path to the current directory.Git init turns the current
Related directives:1. Create a new branch from the remote Master Branch, at which point the new branch content is the same as the master branch:git checkout master;Git branch newbranch;git checkout newbranch;Git commit-a-m ' New branch ';Git push Origin newbranch;2. Submit a new file a.txt to the local repository:git a
Common git commands
1. Basic commandsGit branch view local branchesGit branch-r view remote branchGit checkout xxx switch BranchGit pull origin master // synchronize from remote to local, master or branch nameGit pull origin xxxGit checkout-B xxx: Create a branch of xxxGit checkout-B local branch name remote branch nameGit branch-D xxx Delete local branchGit status view statusGit add file add to local serve
1, (first into the project folder) by command git init to turn this directory into a repository that git can manageGit init2. Add the file to the repository, using the command git Add. Add to staging area inside, don't forget the decimal point ".", meaning to add all the files under the foldergit Add.3. Use the command git
Comparison between Shell script commands and DOS batch processing commands-Linux general technology-Linux technology and application information. The following is a detailed description. [I = s] This post was last edited by lijiang at, January 10 ,.
,
In fact, the defective DOS batch processing file language can still write some powerful scripts, although they g
If the label is wrong, it can also be deleted:$ git tag-d v0.1Deleted tag ' v0.1 ' (was d96a49b)If you want to push a tag to the remote, use git push orign tagname;$ GIT push origin v0.2Username for ' https://github.com ': [email protected]Password for ' https://[email protected] @github. com ':Counting objects:1, done.Writing objects:100% (1/1), 805 bytes | 0 by
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.