Git add, view, extract, push, delete remote repository (GitHub) tutorial, gitgithub
Add remote database
To add a new remote repository, you can specify a simple name for future reference. The command format is as follows:
git remote add [shortname] [url]
This example uses Gi
can clone with HTTPS, ssh, or subversion. Click that SSH button to change to the SSH path. This address allows you to download or upload your version library by typing a command line. (There is also a download zip below. You can package and download other open source projects ).
Now go to your local repository. Input
$git remote add origin [emailprotected]:csdbianhua/learningGithub.git
In this way, the loc
current version is that the console is not closed, and I commit the third version when the commit ID is eac61c6 , so my command isBogon:gitworkspace zuxingyu$ git reset--hard eac61c6head are now ateac61c6 ThridNote: If the console is closed after you submit the version, you can find the commit ID via the git reflog commandBogon:gitworkspace zuxingyu$ git refloge
, the public warehouse is free to use and a private warehouse is created for a fee.Four, Upload items to GitHubCopy the URL of the remote repository:Run the command "Git remote add origin remote warehouse URL"Run the command "Git pushi–u Origin master" to submit the master branch in the local
clone a git clone URL from a remote repository (URL supports various protocols such as GIT,SSH,HTTP,HTTPS)
pull files from the remote repository Git pulls Origin master (
a lot of incredible problems, for example, the first line of the page may show a "?", obviously the correct procedure to compile a report on grammatical errors, and so on, are caused by the mentally retarded behavior of Notepad. Suggest you download notepad++ instead of Notepad, not only powerful, but also free! Remember to set the default encoding for notepad++ to UTF-8 without BOM:Now, let's write a readme.txt file that reads:is a version control s
first line of the page may show a "?", obviously the correct procedure to compile a report on grammatical errors, and so on, are caused by the mentally retarded behavior of Notepad. Suggest you download notepad++ instead of Notepad, not only powerful, but also free! Remember to set the default encoding for notepad++ to UTF-8 without BOM:Now, let's write a readme.txt file that reads:is are free software. Be sure to put learngit it in the directory (su
repository -- cd to the dir that you store all the git repository#2. chmox + x my_repository.sh -- give the script a execute permission#3 ../my_repository.sh
# For delete old temp file, if there is!If [-f all_dir-a-f repository_file]; thenEcho "Now delete old temp file"Rm all_dir repository_file 2>/dev/nullFi
# Read all the items under this dir to the file all_d
Original: http://www.cnblogs.com/wilber2013/p/4189920.htmlGit Basic conceptsIn git, we will need to have version control of the file directory called a warehouse (repository), each warehouse can be simply understood as a directory, all the files in this directory through Git to achieve version management, Git can track
through the git commit command, see the commit record, is not found that there are two versions!There is also a small feature where git log file can view a single file's commit record[Email protected]$ git log readme.txtCommit 32A7706DF9F266522BDB223E8F4308CFCCEC01BAAuthor:houenxun Date:thu Jul 9 20:08:48 2015 +0800Commit Readme.txtOkay, here's what the local co
complex requirements of the database)ALTER USER ' root ' @ ' localhost ' identified by ' Wangfeiyu123 ... ';
4) Initialize MySQL database mysql_secure_installationNote: After executing the initialization command, you need to enter the database root user password, and then the default as a return. (The above questions can also be selected according to their actual situation)
5) Create Gogs library (using UTF8 character set and InnoDB engine, mysql5.7 default is InnoDB engine)
6) root user has al
Manage these remote repositories so thatPushOrPullData
Add remote database
Remove obsolete remote database
Manage various remote database branches
Define whether to track branches
View the current remote database
You can use the GIT Remote Command to list the short names of each remote database.
You can also add the-V option to display the corresponding clone address:
If the
Using the remote git repository in idea is not as convenient as in eclipse, but it can be completed with the official git GUI tool. 1. How to upload the local git repository of a local project to a remote git
following:
Branch (branch)
Conflicts and mergers
Undo and Redo
To illustrate, there is a default branch in Git, that is, the master branch (the Master branch, which appears in the preceding command), which is automatically generated by Git. All of our operations were performed on the main branch, but we were unaware of its existence.Attached to my.
and create a git file directory under Eclipse. Create a Git.link file under Eclipse dropins: path=/home/yangzhi/eclipse/git/and then restart Eclipse is OK. 2 Configuring personal Information Next Configure personal information: Windows->preferences->team->git->configuration Click Add entrykey Value: Enter User.namevalue: GitHub username re-enter: User.emailvalue
GIT: How to manage multiple ssh keys on the local machine (Multiple Remote repository accounts), gitssh
Recently, I have been studying git. I recommend a git tutorial that I think is very good. After learning, I have changed from a new git beginner to a
As a distributed repository control system, Git is the owner of the local repository and can create branches and milestones in the local repository.The problem arises when multiple people are needed to collaborate:1. How to avoid branching clutter on shared repositories because users push all local branches to the shared repo
In the previous chapters we explained the Jenkins combined with. NET platform tools and some third-party tools for automatic Project Restoration, automatic compilation, automated testing, and automatic publishing. However, there is a key step in automating the process of listening to the source repository changes and pulling up the latest code from the repository before performing the steps just described.L
Recently, the local server installed with GIT has crashed, and there is no way to temporarily migrate the repository to ensure the normal operation of the project.
Right-click the project root directory and execute
Query the remote address of the current Warehouse
Git remote-V: view the URL of an existing remote
Android Studio usage notes: Git configuration and first submission to repository, androidgit
Git client URL: http://git-scm.com/download/
Download the corresponding client based on your own platform. Take the Mac system AS an example. After the client software is installed
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.