git-bash

Why does visual studio exclude BIN and OBJ folders at Azure DevOps checkin

不羁岁月 提交于 2019-12-06 03:29:23
I want to know what is the generic way to check-in code on Azure DevOps from Visual Studio or Git-Bash that has been coded in Visual Studio. The problem that occurs is the bin folder contains many third party dll's which are kept in the source before building the project. Those third party dll's are necessary to project. However after check-in to Azure DevOps the bin and obj are not present. This happens due to .gitignore and .gitattribute files. I have deleted both the files and checked in the bin folder as of now. What is the purpose of these two files. Can someone please suggest a way to

GIT Bash for windows gives no result and returns to command prompt

安稳与你 提交于 2019-12-06 01:03:14
I'm a new user of GIT on windows. I have been using GIT on linux for a while but for some reason, I need to use GIT on windows. Now my problem is GIT bash for windows does not perform any remote operation and returns to command prompt with no msgs. For eg: git fetch, git pull, git remote show origin, etc will give you no result. Where as it does give me output for local operations like git log, git branch, git commit, etc. Also the GIT GUI Client gives error "Command Failed" for remote operations. I tried re-installing it several times. I tried a previous version 2.5.3 of GIT as well (latest

Passport local strategy and cURL

旧巷老猫 提交于 2019-12-05 18:26:27
问题 I would like to test my node.js + express + passport.js test application (RESTful) with CURL. My code: var express = require('express'); var routes = require('./routes'); var http = require('http'); var path = require('path'); var passport = require('passport'); var LocalStrategy = require('passport-local').Strategy; // Define the strategy to be used by PassportJS passport.use(new LocalStrategy( function(username, password, done) { if (username === "admin" && password === "admin") // stupid

Using a post-receive hook to create a zip

坚强是说给别人听的谎言 提交于 2019-12-05 18:22:11
I've been playing around with hooks for a while now, but I can't seem to get the post-receive hook to work the way I need it to. I am trying to get the post-receive hook to create a zip folder and place it somewhere outside the git repository folders after I have pushed my changes to the repository. You have a good example of deploying an zip through a post-receive hook in this article from Daniel Byrne : The idea is to use git archive --format=zip : #!/bin/bash # # A post commit hook that takes any updates pushed to the 'release' branch # and creates a release directory for the new version

Pipenv with Conda?

纵然是瞬间 提交于 2019-12-05 16:42:08
问题 I'm using Anaconda for my virtualenvs in win 10. I'm using git-bash .I've been reading about pipenv recently and decided to give it a try. I installed pipenv on my base conda python which is a version of python 2.7 using : pip install pipenv I can easily create a python environment using conda create --name py3 python=3.6 but I tried: $ pipenv install --three which gave: Warning: Python 3 was not found on your system… You can specify specific versions of Python with: $ pipenv --python path\to

git clone without asking for users password

隐身守侯 提交于 2019-12-05 14:31:01
I want to create public git repository on my dedicated server for anyone to clone but it keeps asking me for password for git user. I have created user named git without password. Used: passwd -d git Unfortunately every time I try to do: git clone git@myhost:myrepo.git I'm getting asked for password. I have tried setting in sshd_config Match user git PermitEmptyPasswords yes PasswordAuthentication yes With either yes and no for PasswordAuthentication but still no use. It seems doing it over ssh is impossible. It will always ask for password unless you copy your public key. The solution is to

ssh-add Could not open a connection to your authentication agent

你。 提交于 2019-12-05 14:01:26
I'm having a little issue with my ssh-agent. Indeed I can't make it work and I don't understand why. This is the console's output : I'm sure that ssh agent is running. For your information I'm on Windows 7 and I tried to run the gitbash with administrator permissions, but that did not changed anything. Also everything worked fine until yesterday, and I did not changed anything. Do you guys have any ideas why ? VonC Simply upgrade to the latest git for windows ( with a more recent bash, while msysgit is obsolete ) Unzip PortableGit-2.6.2-64-bit.7z.exe anywhere you want, and add C:\path\to

How to get irb and rails console to work properly in gitbash?

倾然丶 夕夏残阳落幕 提交于 2019-12-05 13:36:34
I'm using gitbash ver 2.9.0, 64-bit, on Windows 7. It uses mintty version 2.0.3. The gitbash shell most of the time seems to work fine. You can use the arrow keys, etc, as with any bash shell and they perform as expected, being able to scroll through prior commands, etc. However, when using irb or rails console (which runs irb ) it is very flakey. Rather than scroll through prior commands, the up arrow just moves the cursor up the screen and enters what are probably up arrow control codes into the input buffer. In addition, irb must be exited with ^C rather than ^D. The ^D does nothing except

bash: nano: command not found at Windows git bash

浪尽此生 提交于 2019-12-05 12:45:38
问题 I am using git version 2.7.0.windows.1 on a windows pc, I used the following command: $ nano README which results me: bash: nano: command not found Now how can I install nano text editor to git bash? 回答1: Little modification of the previous solution (@Simopaa) is worked for me on Windows 10 (without Chocolatey): Download nano-git Move the nano-git-xxx.exe to (for example) C:\Program Files\Git\bin . Modify the .gitconfig file with the following ( single and double quotes are important): [core]

msysGit sudo-like command

老子叫甜甜 提交于 2019-12-05 05:41:19
If we open msysgit as administrator, we can use it as if we were root. However, it is often easier to open without administrator privileges. For example, for administrator privileges, you often have to go to Windows Explorer, the Start menu/screen, etc., and you can't do this from the taskbar. Sometimes, I'm too lazy to do all this, but I want to gain administrator privileges while in Bash. Is there a sudo - or su -like command or script, etc., for Git Bash? Going into cmd.exe , PowerShell , etc., then doing something like runas would work, if there's nothing else. you can't do it from the