git-bash

Invoking notepad++ from Git Bash

我的梦境 提交于 2019-12-02 18:01:31
Hi guys i'm using msysgit in Window 7. How do i invoke notepad++ from Git Bash like we do it with our default notepad. Like for example name@usename notepad textfile.txt Instead i want the file to open with notepad++ Note : I've added notepad++ to my PATH, but still unable to invoke it from commandline. Edit I tried this in .gitconfig --> [alias] notepad='C:/Program Files/Notepad++/notepad++.exe' but isn't working. So, by default you won't have a .bashrc file so just navigate your to your home directory by typing: cd ~ create or edit the .bashrc with vim (or whatever editor you are comfortable

Git Bash won't let me type anything, just shows a blinking cursor

一笑奈何 提交于 2019-12-02 17:58:23
I'm not able to type any characters at the Git-Bash command line; all it shows is a blinking cursor. Git Bash was working fine yesterday, but I'm not able to do anything on it now. What can I do to fix this? I found the answer to a problem with similar symptoms. I'll include it here for someone who finds this page looking for an answer, as I did. In my case, the cursor didn't move, or show my typing onscreen. However, it actually executed the command (if I pressed Enter ), even though it looked like I didn't type anything in! The solution was to type reset < Enter > Turns out it can be an

Command to clear the Git Bash screen

末鹿安然 提交于 2019-12-02 17:02:46
Is there any command in Git, that clear the screen. for example in window command line after execute a lot of code, if you type cls, then it will clear all the previous code. so i want the same type of functionality in Git. so can anybody will tell me the command name. Actually you are looking for a Unix user environment command clear or you can use the keyboard shortcut ctrl+l http://en.wikipedia.org/wiki/Clear_(Unix) To clear entire command history in Git Bash. history -c try using reset command, it will absolutely clean your screen but you will still have access to previous commands reset

Piping output from Git Bash to clipboard

大憨熊 提交于 2019-12-02 16:59:56
I often need to relay my Git output to my ever-friendly code buddies. The best way I know how is by doing this: Right-click Git Bash title bar > Edit > Mark > Select lines > Enter Bam - everything I selected is in my clipboard, and I am filled with joy. Problem is, that's the boring way, and I like my relationship with Git to be full of excitement and glamour . In Windows, you can pipe console output to your clipboard like-a so: C:\> dir | clip Amazing, right? Well, when you try to do something that in Git Bash, here's what happens: > git branch | clip sh.exe": clip: command not found And that

opening sublime text from windows git bash

微笑、不失礼 提交于 2019-12-02 16:44:39
How do I open Sublime text from Git Bash in Windows? I tried adding the alias at the ~/.bashrc file but nothing worked. I was looking for something very easy but I could not find in the internet. I am going to answer my own question. First, I created a .bash_profile file under /Users/username directory. I have copied all my git aliases here. To access sublime text I added this alias: alias subl="/c/Program\ Files/Sublime\ Text\ 2/sublime_text.exe" I think the spaces after the backward slashes are important for formatting. If this doesn't work you will have to look where your sublime_text.exe

How can I change the user on Git Bash?

一曲冷凌霜 提交于 2019-12-02 15:55:33
I want to sign out an actual user so I can sign in with another user. What I see in Git bash is: MINGW64 ~/Documents/NetBeansProjects/ConstructorJava (master) git push -u origin/master remote: Permission to Fre1234/ConstructorJava.git denied to Fre123. Fatal: unable to access https://github.com/Fre1234/ConstructorJava.git/": The requested URL returned error: 403 Check what git remote -v returns: the account used to push to an http url is usually embedded into the remote url itself. https://Fre123@github.com/... If that is the case, put an url which will force Git to ask for the account to use

How to create a new repo at Github using git bash?

一曲冷凌霜 提交于 2019-12-02 15:38:53
How can I create a new repository from my machine using git bash? I followed the below steps: mkdir ~/Hello-World cd ~/Hello-World git init touch README git add README git commit -m 'first commit' git remote add origin https://github.com/username/Hello-World.git git push origin master But I'm getting "Fatal error: did you run update-server-info on the server? " You cannot create a repo on github using git bash. Git and github are different things. Github is a platform that let's you host and collaborate on code while git is the version control tool used. You can read more about them on

Git Bash mysql blank

自古美人都是妖i 提交于 2019-12-02 14:37:51
I've installed Git (bash?) from www.git-scm.com I also have a working installation of MySQL. I'm using windows 8.1. The path to my mysql bin directory IS in my path environment variable, and the mysql service IS running. If i open cmd.exe and type in mysql -u root then it logs me in successfully, I get the "welcome to mysql monitor" message, and i can start typing sql away. However in Git bash, if I type in mysql -u root then it just starts a new blank link and doesn't do anything. If i type in mysql -? then i still get the mysql help information. If i type in mysql start , I get the Access

Git bash Error: Could not fork child process: There are no available terminals (-1)

依然范特西╮ 提交于 2019-12-02 14:15:49
I have had up to 8 git bash terminals running at the same time before. Currently I have only 2 up. I have not seen this error before and I am not understanding what is causing it. Any help would be appreciated! Picture attached: Scott Newson Found a similar issue and potential solution in google groups I'm not sure if you guys are still having a problem with this, but I found a very simple fix that worked for me. I opened a windows command prompt and ran the command $ tasklist It looks as though the ssh connections I had made in my git bash shells weren't being closed when those windows were

How do I avoid typing “git” at the begining of every Git command?

女生的网名这么多〃 提交于 2019-12-02 14:02:12
I'm wondering if there's a way to avoid having to type the word git at the beginning of every Git command. It would be nice if there was a way to use the git command only once in the beginning after opening a command prompt to get into "Git mode" . For example: git> After which every command we type is by default interpreted as a Git command. In a way similar to how we use the MySQL shell to write database commands: mysql> This will save me from having to type git hundreds of times a day. NOTE: I'm using git-bash , on Windows. You might want to try gitsh . From their readme: The gitsh program