git-bash

How can i make gitbash find the javac command?

旧时模样 提交于 2019-11-30 14:12:42
I made my gitrepository and committed it. Inserted one java-file and wanted to to compile it ,but it gave me this: Bernard@BERNARD-PC /c/users/bernard/desktop/git2 (master) $ javac TestGUI.java sh.exe": javac: command not found It used to work in school on their computer,but at home on my laptop I cant make it work. EDIT : I added javac as environment variable: EDIT : Short term solution for the duration of the runtime of gitbash enter: `export PATH=$PATH:"/C/Program Files/Java/jdk1.7.0_21/bin/"` Long term solution so you can reuse this command after shutting down and rebooting gitbash: (for

Differences between Git-scm, msysGit & Git for Windows

核能气质少年 提交于 2019-11-30 10:21:28
问题 What is the difference between git-scm (downloaded from git-scm.com) and msysGit (hosted on Google Code, Github, and probably others)? They both seem pretty similar, and even though I have git-scm, I have applied fixes specified for msysGit and they seem to work fine. Also, which one, if either, is Git for Windows , and are both called Git Bash , or do both have the Git Bash shell, or only one of the two? 回答1: The website git-scm.com is the official website for Git, the version control

Maven classworlds.launcher.Launcher error in Git for Windows (64-bit)

社会主义新天地 提交于 2019-11-30 09:13:03
I've been using Maven on Git Bash (64-bit) for a few months now, and suddenly it stopped working, and is now generating this error on any maven command: myuser@mypc MINGW64 ~ (master *) $ mvn -v Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher I have reviewed many questions on SO, including this one: Maven error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher but have not solved my problem. I have upgraded to the latest Git for Windows (2.14.2.windows.2) from 2.12 but the problem remains. My Maven installation is at

Backspace and arrow keys aren't working in IRB(Git Bash console) on windows machine

泪湿孤枕 提交于 2019-11-30 08:07:22
I just installed ruby 1.9.2 on windows machine and Backspace or any other arrow keys don't work. This happens only when I open IRB on Git Bash console. But it works fine on Windows console. Any help on that? Note: IRB was working fine on both consoles with the earlier versions of ruby. Same thing happened to me. Running irb with --noreadline solved my problem: irb --noreadline Seems you didn't have readline installed while compile ruby. So install readline, maybe also readline-devel, then recompile ruby. You can also disable readline in ~/.irbrc IRB.conf[:USE_READLINE] = false As documented

My .bashrc file not executed on Git Bash startup (Windows 7)

◇◆丶佛笑我妖孽 提交于 2019-11-30 06:23:37
问题 This is what I did: cd ~ touch .bashrc notepad .bashrc and the content of my .bashrc is (found on the web somewhere): SSH_ENV="$HOME/.ssh/environment" # start the ssh-agent function start_agent { echo "Initializing new SSH agent..." # spawn ssh-agent ssh-agent | sed 's/^echo/#echo/' > "$SSH_ENV" echo succeeded chmod 600 "$SSH_ENV" . "$SSH_ENV" > /dev/null ssh-add } # test for identities function test_identities { # test whether standard identities have been added to the agent already ssh-add

How to default to other directory instead of home directory

穿精又带淫゛_ 提交于 2019-11-30 06:09:40
问题 I am developing on a windows machine. The only place I need for linux command line is Git Bash. The problem is: When I open it, I am in the home directory. I have to change the directory to my workspace, like: cd ../../../d/work_space_for_my_company/project/code_source Can I wrap this in a .sh file so I don't have to hand-type it anymore? This should be simple but I have zero knowledge about Linux command line. I am really appreciated If you can walk me through how to create that .sh file.

How to see color Ant output in MSYS/Git Bash?

冷暖自知 提交于 2019-11-30 03:48:01
问题 I'd like to use AnsiColorLogger to get color ouput from Ant. I'm using Git Bash on Windows. I tried: $ ant -logger org.apache.tools.ant.listener.AnsiColorLogger but my output looks like: Buildfile: c:\foo\build.xml ←[2;36m [junit] Testsuite: org.foo.BarTest←[m ←[2;36m [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.188 sec←[m ←[2;36m [junit] ←[m ←[2;36m [junit] Testcase: testInherits took 0.175 sec←[m ←[2;36m [junit] FAILED←[m ←[2;36m [junit] subdir not child←[m ←[2;36m [junit]

fatal: Not a git repository: '.git' error

五迷三道 提交于 2019-11-30 03:03:16
问题 I have created a pre-commit hook which takes the database dump and saves it in a file under my application/folder which is also in the git repo, after saving it I add the file to commit list . Following is the code in my pre-commit file D:/xampp/mysql/bin/mysqldump -u root -pxyz --skip-extended-insert [database] > D:/xampp/htdocs/app/application/[database].sql cd D:/xampp/htdocs/app/application git add [database].sql I tried to run the pre-commit code directly through command prompt it works

Cygwin or Git Bash command window? [closed]

孤人 提交于 2019-11-29 20:55:40
I'm new to Git. I downloaded Git and installed on my Windows. I saw Git provides a Git Bash command window. I also have Cygwin installed on my machine. Both Git Bash and Cygwin provide Git command line utilities. So my question is: Which one is the preferred way to use Git command: Running Git commands in Git Bash or Cygwin? VonC git-bash is enough, unless you need more recent bash feature (since the bash from MingW used by msysgit is quite old) See also " Difference between msysgit and Cygwin + git? ". For instance, GitHub for Windows would use msysgit, not git in Cygwin. 来源: https:/

Change drive in git bash for windows

时光毁灭记忆、已成空白 提交于 2019-11-29 20:47:00
I was trying to navigate to my drive location E:/Study/Codes in git bash in windows. In command prompt in order to change drive I use E: It returns an error in git bash . bash: E:: command not found. How do I change my current directory location from /c/users to E:Study/Codes In order to navigate to a different drive just use cd /E/Study/Codes It will solve your problem. Just consider your drive as a folder so do cd e: Vyacheslav In order to navigate to a different drive/directory you can do it in convenient way (instead of typing cd /e/Study/Codes), just type in cd[Space], and drag-and-drop