directory created by GitBash doesn't appear in Windows explorer - windows

Hi I'm working with GitBash to create a directory for my project, and then to clone the project from GitHub.com/...
But the directory never appeared in Windows Explorer.
To be detailed:
I create a directory using mkdir TestForStackOverFlow
I clone the project from GitHub.com using git clone https://github.com/udacity/Sunshine-Version-2.git
but i can't access this directory with windows explorer.
Images proving:
Before mkdir TestForStackOverflow
After mkdir TestForStackOverflow
Any guess how to fix it?
Thanks in advance

Finally was the COMODO firewall (version 6.2.282872.2847) who "auto sandbox" the GitBash without asking me.
I mark C:/Program Files/Git folder as Trusted and everything runs fine!
To do this on COMODO there is the steps:
Open COMODO firewall and move to Task by clicking the up-right Icon as showing in the next image (red arrow)
In the Task screen choose Shadowbox Tasks and then click Open Advanced Settings
In the new window on left menu choose File Rating -> Trusted Files. In the list will appear open the pop-up menu on the bottom of the list (the little up-arrow on the bottom).
Choose Add > Folders, navigate to the Git Folder and press OK. Finally press OK to Advanced Settings window.

Try and see if the issue persists when using a more recent bash, namely the one package with the latest git-for-windows (successor to msysgit)
Unzip PortableGit-2.4.4.2-3rd-release-candidate-64-bit.7z.exe and launch its git-bash.exe.
You will be using Git 2.4.4. On Windows.

Related

Where to find htdocs in XAMPP Mac

I cannot find the htdocs directory anywhere on XAMPP for Mac.
Many videos on YouTube show people just clicking a button that says "Go to application folder" but on my user interface, it reads: "Go to application" which just opens the localhost page at http://localhost.
Where can I locate the htdocs directory?
In the "volumes" tab, you have to mount it first. Then it appears on the desktop as if it were an external USB. All the data is inside it. :D
At least for macbook (os high sierra) go to terminal and type or copy and paste:
cd ~/.bitnami/stackman/machines/xampp/volumes/root/htdocs
I have installed XAMPP version 7.3.11, After starting the Apache and other services, go to volumes tab on XAMPP, and click on mount button,
And then Click on explore button,
You will get Finder open up with this,
Open xampp application, then do the following:
go to: volumes,
click the [mount] button, and
finally click explore.
Go to Volumes Tab and click Mount
You can find it under Locations in the Sidebar. Click on it.
Open this folder: Lamp
You can find the htdocs folder inside Lamp, just like the below screenshot:
Note: I am using macOS Catalina.
you installed Xampp-VM (VirtualMachine), simply instead install one of the "normal" installations and everything runs fine.
Simple as ...
From the UI
Click Go->Go to Folder then /Applications/XAMPP/htdocs
From Terminal
cd /Applications/XAMPP/htdocs
Click volumes, then explore, and then that should open lampp which has htdocs in it.
for each easy and useful access you can add terminal command via editing your bash profile, here how:
open terminal -> type cd hit enter.
then type nano .bash_profile
then add this line
alias htdocs="cd ~/.bitnami/stackman/machines/xampp/volumes/root/htdocs"
Now hit ctrl + o then hit enter, then hit ctrl + x
Now to refresh the terminal commands type the following command
source .bash_profile
Now you can use htdocs command each time you want to navigate htdocs folder.
There are two ways to find it:
One way is to open Finder>Applications>XAMPP(FolderNotTheInstaller)>htdocs
Another way is cmd+space and searches for manager-osx,
go to Welcome and click the Open Application Folder.
For me it was in
/Users/your username/.bitnami/stackman/machines/xampp
I am using Mac Os Mojave 10.14.5
From XAMPP Application window (manager-osx) click => Open Application Folder >> htdocs
Now you opened your target folder.
You can see process by image below
XAMPP Application window (manager-osx)
Open Application Folder
Application (xamppfiles) folder opened
Click on 'htdocs'
Your target folder 'htdocs' opened
Now begin your development
Make sure no other apache servers are running as it generates an error when you try to access it on the browser even with a different port. Go to Finder and below Device you will usually see the lampp icon. You can also open the htdocs from any of the ide or code editor by opening files or project once you locate the lampp icon. Make sure you mount the stack.
Simply click in "Go To Application Folder"
I used this line to locate and edit the permissions under xampp:
chmod 777 ~/.bitnami/stackman/machines/xampp/volumes/root/htdocs/folder
The next moment I installed MAMP, can find the docks in my local.
PFA screenshot.
Location:
/Applications/MAMP/htdocs/
You installed xampp Vn thats the problem.
Install normal xampp and everything will be fine.
link to nornal xampp: https://www.apachefriends.org/download.html
Download it from the link
install it
when it opens, Simply click in "Go To Application Folder".
/Applications/XAMPP/xamppfiles/htdocs
Go to finder in your Mac
In Location click the network address.
You will see the Lampp folder. To see this network address yo need to have started xampp application and mounted it.
Click Lampp folder
You will see the htdocs folder among the folders.
On opening htdocs folder you will find your php applications
From the Finder menu, click Go->Go to Folder. Type in /Applications/XAMPP

SourceTree does not fully uninstall

Using SourceTree on windows. I would like to do a full uninstall to re-install. However, I uninstall and delete remaining registry info, on re-install SourceTree skips all of the setup and just opens like it never left. I don't even have to re-login or anything.
Wondering if anyone has experienced this and can help me solve it?
I had the same issue, attempting uninstall would simply remove SourceTree from the list of programs in the "Uninstall or Change a Program" menu.
I ended up removing all SourceTree files from C:\Users\[username]\AppData\Local\Atlassian in addition to the SourceTree and SourceTree-settings folder from the Local folder. I backed them up to my desktop just in case, but obviously you can delete these after if it is successful.
After that, the next install prompted regular setup.
Follow the steps here:
https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html
Windows
Make sure SourceTree is closed
Make sure the files are backed up in the following folders before removing the files
Remove files "bookmarks.xml", "opentabs.xml", "userhosts" in C:\Users\<username>\AppData\Local\Atlassian\SourceTree\
Remove file in C:\Users\<username>\AppData\Local\Atlassian\SourceTree.exe<random_string>\<version_number>\user.config
Open SourceTree again to test if it worked or not.
C:\Users\<username>\AppData\Local\Atlassian\SourceTree
Delete this folder and reinstall the sourcetree.
If you didn't find AppData folder inside users, click view in top menu and check "Hidden Items". Then hidden items will be shown.
Completely Uninstall SourceTree from windows...
1) Uninstall sourcetree by going in control panel/ uninstall a program and click
on sourcetree or above a option named uninstall.
2) Navigate to
C:\Users<UserName>\AppData\Local
and delete SourceTree folder(if any).
3)Navigate to
C:\Users<UserName>\AppData\Local\Atlassian
and delete all SourceTree folders.
4) Navigate to
C:\Users<UserName>\AppData\Roaming\Atlassian
and delete SourceTree* folder
-- Download SourceTree and install it.

'git' is not recognized as an internal or external command

I created Android Project in Android Studio, now that I would like to push it into my repository.
When I enter the following command in Android Studio terminal:
git remote add origin https://..........
The following error is returned:
git is not recognized as an internal or external command, operable program or batch file.`
How can I fix this?
If "git" is not installed then you need to install git and while installation select option 'Use Git from the Windows Command Prompt'.
If "git" is installed but still you are getting "git is not recognized as an internal or external command" error then you need to set PATH variable to point to git executable. To do that follow the steps below:
Open My Computer, right click and select Properties
On this window, click on Advanced System Settings link which will open System Properties popup.
In that popup (under Advanced tab), click on Environment Variables which will open Environment Variables popup.
In that popup, select Path and click on Edit, which will open Edit Environment Variable popup
From that popup window, click on Browse and browse to the git installation directory. Mostly it would be "C:\Program Files (x86)\Git\bin", select the directory and click Ok on all opened popups.
You will need to close command prompt and open again. Git command should work now!
Most probably Git is not installed on your machine (or installed incorrectly). Open this link to download an installer. It should do the job for you.
There are also other ways to install Git on Windows.
When you install Git, you must select the option 'run Git from the Windows command prompt'?
Download the latest version of the Git from here : http://git-scm.com/download and try again!

Recreating PyCharm launcher in Ubuntu

I installed pycharm normally via bin/pycharm.sh, but the mistake I made was doing bash pycharm.sh while the pycharm directory has inside the Downloads folder.
I later on moved the directory to /opt/Pycharm/. This is causing the once functioning unity launcher (which was added when PyCharm was initially installed) to fail every time I attempt to use it (as expected).
How can I re-add pycharm.sh as a lauchable app from the unity launcher? I know the location of the pycharm.sh file. I've tried to add it to /usr/bin/ but that does not change anything.
I can still launch pycharm via bash /usr/opt/Pycharm/bin/Pycharm.sh. But this is tedious.
UPDATE
I have tried making a new .desktop file for pycharm, using the following script:
[Desktop Entry]
Encoding=UTF-8
Name=PyCharm
Exec=/opt/Pycharm-3.0.1/bin/pycharm.sh
Icon=/opt/Pycharm-3.0.1/bin/PyCharm_32.png
Type=Application
Categories=Development;
StartupWMClass=PyCharm
However, I get a "Unable to save Pycharm.desktop" error when I try to save the file inside /usr/share/applications/pycharm.desktop. Any help regarding this would be deeply appreciated.
First start pyCharm from it's bin folder via command line
$ ./pycharm.sh
Then, goto
Tools -> Create Desktop Entry.
It will create a correct Desktop file in the correct place. Afterward you can initiate it from the menu and pin the icon or drag and drop it to the bar. This way, you don't have to deal with .desktop files and mumbo jumbo..
I managed to solve it. The thing is, Pycharm already installs a launcher inside .local/share/applications. Thus, you need to get rid of it before proceeding to create your own. After that, all you have to do is add your own *.desktop file to the applications directory inside usr/share/applications/.
You need to create your .desktop file using sudo and inside the desktop file:
[Desktop Entry]
Encoding=UTF-8
Name=PyCharm
Exec=/opt/pycharm-3.0.1/bin/pycharm.sh
Icon=/opt/pycharm-3.0.1/bin/pyCharm.png # Changed from pycharm_32.png
Type=Application
Categories=Development;
StartupWMClass=PyCharm
After that is done, you can launch your app properly. Please note that pycharm.sh must also have execution rights.
With Ubuntu 16.04, I used the "snap" installer, which doesn't include an easily accessible icon (there's probably one hidden inside the snap image, but it's hard to get at). Instead it shows a grey question mark icon in the launcher instead. Also there doesn't seem to be a Tools > Create Desktop Entry option in version 2017.3.3 as far as I can see - maybe it has been moved somewhere.
So I copied pycharm.png from an earlier non-snap Community installation, saved it somewhere, then created ~/.local/share/applications/jetbrains-pycharm-ce.desktop:
[Desktop Entry]
Version=1.0
Type=Application
Name=PyCharm Community Edition
Icon=/path/to/pycharm.png
Exec="/snap/bin/pycharm-community" %f
Comment=The Drive to Develop
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-pycharm-ce
Then when I start PyCharm (from the command line), the launcher item appears with the correct icon, and then I right-click on it and choose "Lock to Launcher", and it now persists.
A downside is that the icon will not be automatically updated with the app, so it might fall out of date.
In case you just want to update your launcher to point to an updated PyCharm, for me changing 4.0.4 to 4.0.6 in the following worked:
nano /usr/share/applications/jetbrains-pycharm.desktop
When Tools -> Create Desktop Entry does not work:
Create a new file on your desktop (using vi or a similar command) named: jetbrains-pycharm.desktop
Paste the following inside:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Name=PyCharm
Icon=/opt/pycharm-5.0.1/bin/pycharm.png
Exec="/opt/pycharm-5.0.1/bin/pycharm.sh" %f
Comment=Develop with pleasure!
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-pycharm
Keep in mind to change the path and version number of icon and exec properties above.
Tested on various versions of PyCharm - like a charm ☺
In the 2016 version of PyCharm just do following:
Start PyCharm.
From the Tools menu, select "Create Desktop Entry..."
Create entry for "all the users" if required.
Relaunch PyCharm from Launcher.
Ubuntu 16.04 (haven't checked prior versions)
Run pycharm.sh (make sure you use the correct dir and PyCharm version below):
$ ./dir_where_you_placed_it/pycharm-2016.1.4/bin/pycharm.sh
While PyCharm is running, right click its icon on the Launcher and select "lock to Launcher".
Run $ pycharm-community
Right after you will see the icon on the taskbar.
Right Click, select Lock on the Taskbar.
Somewhat solves the problem.
Simply replaced the Icon=/path/to/pycharm.pngin ~/.local/share/applications/jetbrains-pycharm-ce.desktop from meowsqueak's answer with the correct path when installed from snap.
[Desktop Entry]
Version=1.0
Type=Application
Name=PyCharm Community Edition
Icon=/snap/pycharm-community/current/bin/pycharm.png
Exec="/snap/bin/pycharm-community" %f
Comment=The Drive to Develop
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-pycharm-ce
sudo vim `which charm`
Now edit the RUN_PATH.
I recently resolved a related issue where, after updating from v2.7 to v3.0.2, my PyCharm launcher was still pointing to the old (and now deleted) PyCharm path.
After attempting all of the (good) advice above, the problem still persisted.
The solution, in my case, was to create a desktop entry for ALL USERS.
[Welcome Screen]->Configure->Create Desktop Entry...
Check the box: "Create entry for all users" and then proceed.
Apparently, in a previous installation I must have installed it in this fashion and was not able to update the launcher for a single account.
Now the pycharm updated to version 2016.1 and I find the file jetbrains-pycharm.desktop in the path ~/.local/share/applications
then just edit the path for Icon and Exec
Simply type this on your terminal window:
jetbrains-pycharm.desktop
Hope that helps :)
I just wanted to add, I just installed PyCharm Edu for Ubuntu 16.04 LTS today, and the way to create a desktop entry is very easy. When PyCharm Edu opens up, before entering any project, click on configure, and there should be a create Desktop Entry option. Select it, and it will create a PyCharm Edu.desktop file in the following directory:
/usr/local/share/applications
Now traverse to that destination, and click the newly created PyCharm Edu.desktop file to launch PyCharm Edu. After that, you would just need to lock to launcher. It should work.
I know I am very late, but I hope I've helped those of us on Ubuntu 16.04 LTS who are trying to configure a desktop entry for this specific application.
I guess you didn't check 'Create the entry for all users (requires superuser privileges)' option on Tools -> Create Desktop Entry. You should check it.
You don't have to create something new.
you can always use python for automation
may be this will help you
a python script that allows u to run pycharm as user or sudoers/root
import os
from time import sleep
sleep(1)
program = input('which program to run: >')
if program == "pycharm":
os.chdir('#full path to pycharm paste here')
root = input('run as root(y/n): >')
if root == 'y':
print('started ' + program + ' as root')
sleep(0.5)
print('please enter root password to continue:')
os.system('sudo ./pycharm.sh')
elif root == 'n':
print('running ' + program + ' as non root')
os.system('./pycharm.sh')
elif program != 'pycharm':
print('program not found')
I have an LXDE desktop (on Debian Buster) and using PyCharm CE 2020.2.3. Choosing Create Desktop Entry... created nothing on the desktop, no matter whether Create the entry for all users was checked or not.
However, the PyCharm menu entry (under Programming) offers a context menu entry Add to desktop. Clicking this finally made the desktop icon appear.

Msysgit for windows - Cheetah plugin not showing?

I recently installed git 1.8 for windows and chose to install the cheetah plugin for windows explorer shell integration. However, I don't see any options pop-up in the right click menu. Is there something I have to do to get it to appear in the right-click menu?
I am using Windows 7 Enterprise 64bit.
In:
C:\Program Files (x86)\Git\git-cheetah
Do:
regsvr32 git_shell_ext64.dll
This at least gets you 3 context menus (don't know if cheetah plugin cause I never saw it :-)
Is this a bug or what? I thought installer should be doing this (things like registering DLLs).
P.S. of course you have to run this command as Administrator.
P.P.S. Start | Run, type cmd.exe, then RIGHT CLICK cmd.exe and select "run as administrator". Apparently you also have to restart Windows Explorer to see the context menu.
Cheetah plugin seems to be broken in Git-1.8.3-preview20130601 on some systems (including mine). Re-registering .dll file as suggested didn't helped. The way I fixed it is:
Install older version - Git-1.8.1.2-preview20130201 with Cheetah
plugin.
While updating to Git-1.8.3-preview20130601 deselect context
menu integration (no worries, it won't uninstall a plugin).
The registry entry is separate for when you right click on a folder icon versus right clicking on space inside a folder.
If memory serves "Cheetah" only works with the former.
Example
I have the same problem on Windows 7 with Git-1.8.3-preview20130601 version.
Supposedly when you select the Cheetah plugin on install it also installs the git-gui and gitk tools as well, but these were not showing up in the right click menu either.
After adding the path to the git cmd folder I at least got git-gui and gitk to be available. ie add to your PATH variable:
"path to git directory install"\cmd

Resources