I use the Windows system, these days learned to use Git to find each use of Git push each time to enter the user name and password, feel very annoying, deliberately surf the internet, found a simplified method. Although not original, but at least added a bit of their own experience, after all, the middle also luo a half-day.First enter your user name directory , Windows
Git bash is a natural use when using Git under Windows, and I'll share some of the Git bash tips.
Official download Address http://msysgit.github.io/ Set the initial path
The default Git
Recently write C # from Linux up and down to Windows. It feels a great difference. The biggest change is---a variety of GUI tools ah ... Everywhere, a variety of search menus. Not used!! Miss BSH's Flexibility AH ~ ~ ~Why to use GitGit is the most popular version manager of the moment. A lot of benefits, but the most important thing is actually a little
Tags: convenient win32 principle INI defect to make the line BSP self-with ACKHow do I use Linux commands in Windows?There are many on the web saying that installing cygwinportable under the CMD window is a Linux command, but there are some flaws.In fact, there is a very simple and effective way for programmers to use Git Bash.Git
since it prompts that there was a problem with the file, what would happen if I deleted it? The result is that the other file is blank. That is to say, you have to delete it. What happens if I modify its log? So, the log file I checked
1, C:\Program Files\git\etc\git-completion.bash:
Alias ls= ' ls--show-control-chars--color=auto '
Description: Allows you to enter the LS command in Git Bash to display the Chinese file name correctly.
2, C:\Program FILES\GIT\ETC\INPUTRC:
Set Output-meta on
Set Convert-meta
installation package http://www.cr173.com/down.asp for this URL? Id = 30724
You can also download the git Chinese installation package from other websites.
Because Git is relatively simple to install, I just want to focus on the interface that is not mentioned and keep it by default.
The following figure shows how to
1.idea terminal modified to Git bashBecause the idea comes with the terminal tool is Windows Command Window cmd, in the development process need to use some common command operations to constantly in the idea and git bash between the switch, greatly reducing our development efficiency, So we need to find a way to both
Manage multiple remote code libraries with Git bash Technology Maybe yes posted on 2015-01-15 13:11 Original link: http://blog.lmlphp.com/archives/62 from: lmlphp backyard My other article, "GitHub git Bash tutorial," Recently, Baidu and other search engines have brought some traffic, see a lot of netizens browsing, t
Turn from: Right-add git Bash here menu
1. Open the registry by typing ' regedit ' in ' run '.
2. Find [Hkey_classes_root\directory\background].
3, under [Background] if there is no [shell], then right-new item [Shell].
4. Under [Shell] right-new item [Open in Git], the value is
. For example, you can do this in bash:$ if ls *.markdown >/dev/null; then :; else echo $?; fi2Therefore, in the case of a wildcard expansion failure, we can easily redirect the error output of the external command to /dev/null , and then perform subsequent operations based on the error code that is returned.In zsh, however, the error output from the ZSH interpreter itself cannot be redirected:$ if ls *.mar
Git Manual (Manual) page will be opened. You can view the usage of commands like this.In Ubuntu, the command line output is as follows:Of course, you can also find the corresponding commands in the Git official manual!
3. Create a local code repositoryYou can directly type the following command to create a project with a Gi
Recently decided to use GIT for version management, and GitHub intends to be active, as well as a growth incentive.But the problem arises, git GUI really do not want to use, vs git plug-ins have tried, there is still a lack of functionality (such as the creation of different branches, cannot push the new branch, and a
Steps :
1. Open the registry by typing ' regedit ' in ' run '.
2, find [Hkey_classes_root\directory\background].
3, under [Background] if there is no [shell], then right-new item [Shell].
4, right under [Shell]-New Item [Open in Git], the value is "Git Bash here", this
$ git checkout work //Go to your own branch of workJob....$ git commit –a //Commit changes to the work branch$ git checkout master //Back to Main branch$ git pull //Get the latest changes remotely, no conflicts at this time$ git checkout work // Back to work Branch$
Each time you open git bash, the default path is C:\Users\alan_zhu, which is cumbersome to switch to working directory (CD D:\forGit) with the CD command.Method 1, modify the GIT bash shortcut in the start in to solve the problem.
The previous article, using node. js to build an HTTP server, and then start in cmd, this time try Git bash.Git bash is also a command line tool, better looking, easier to use, and can replace CMD.Download git:https://git-for-windows.github.io/Installation omitted ....The first step: Open
Git Bash Chinese garbled characters in Windows,
Open Git Bash
Go to the directory: $ cd/etc
1. Edit the gitconfig file: $ vi gitconfig
Add content to the file
[Gui]
Encoding = UTF-8 # use UTF-8 in the code library
[I18n]
Commitencoding = GB2312 # log encoding. The default value
When you open git bash, each time you are under the C:\Uer path, you need to first switch to the path you want to work with by using the CD command (CD/F/DSS). Modifying the default path when you open Git bash allows you to switch to a directory that you need to manage without having to use the CD command every time.To
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.