git-remote

Composer package conflict in git repository; how to untrack files but avoid deletion of files when pushing to remote

≡放荡痞女 提交于 2021-02-17 06:22:09
问题 I installed a package on my web application via composer. And added the package folder to .gitignore, whilst committing composer.json and composer.lock To deploy to our server, we Push to a bare Git remote on the server which in turn pushes the modified files to the relevant location on the server. This workflow was all working fine. At a later date, someone else working on the repository added the package files to the repository and removed the package from gitignore. We want the package

Git find modified files since <ref> from a shallow clone

我的未来我决定 提交于 2021-02-16 14:10:26
问题 I'm on a CI box running tests. To speed it up, I'm just doing a shallow clone: git clone --depth 1 git@github.com:JoshCheek/some_repo.git Assuming all the tests pass, I want to trigger the next step in the pipeline. What to trigger is based on which files changed between the last d eployment (ref d123456 ) and the c urrent ref I just tested (ref c123456 ). If I had done a normal clone, I could find out like this this: git diff --name-only d123456 c123456 But my clone is shallow, so it doesn't

Git remote operations inside Visual Studio 2013 result in the error “A specified logon session does not exist. It may already have been terminated”

南楼画角 提交于 2021-02-07 13:19:31
问题 I am using Git inside Visual Studio 2013. When I attempt to do any operation against a remote like fetch, pull, push, etc. I get the following error: An error occurred. Detailed message: An error was raised by libgit2. Category = Net (Error). A specified logon session does not exist. It may already have been terminated I was unable to find an answer but eventually found two work-arounds. I will post the work-arounds here. I downloaded Git so I could use it outside of Visual Studio. If I ran

The remote end hung up unexpectedly while Git push with large files

旧街凉风 提交于 2021-02-06 11:50:11
问题 When I try to push to my bitbucket repo, I get the following error. (In fact its the same in GitHub as well). Counting objects: 48, done. Delta compression using up to 2 threads. Compressing objects: 100% (38/38), done. Writing objects: 100% (48/48), 1.95 MiB | 38 KiB/s, done. Total 48 (delta 9), reused 0 (delta 0) fatal: The remote end hung up unexpectedly error: RPC failed; result=56, HTTP code = 0 fatal: recursion detected in die handler Everything up-to-date Mostly I get another error

The remote end hung up unexpectedly while Git push with large files

一曲冷凌霜 提交于 2021-02-06 11:49:28
问题 When I try to push to my bitbucket repo, I get the following error. (In fact its the same in GitHub as well). Counting objects: 48, done. Delta compression using up to 2 threads. Compressing objects: 100% (38/38), done. Writing objects: 100% (48/48), 1.95 MiB | 38 KiB/s, done. Total 48 (delta 9), reused 0 (delta 0) fatal: The remote end hung up unexpectedly error: RPC failed; result=56, HTTP code = 0 fatal: recursion detected in die handler Everything up-to-date Mostly I get another error

Undo set-branches on git remote

北战南征 提交于 2021-02-05 05:50:33
问题 I've currently set up my git remote to restrict which branches are fetched: git remote set-branches myOrigin myBranch This adds the proper entries to .git/config : [remote "myOrigin"] fetch = +refs/heads/myBranch:refs/remotes/myOrigin/myBranch Now I want to undo this, and go back to the default configuration: [remote "myOrigin"] fetch = +refs/heads/*:refs/remotes/myOrigin/* How can I do this without manually modifying my .git/config ? Is there a git command I can run? 回答1: Simply use quoted

How to change a connection to GitHub from SSH to HTTPS?

白昼怎懂夜的黑 提交于 2021-01-20 15:46:51
问题 I created my first repository in GitHub yesterday. When making the connection I used SSH instead of HTTPS, so I went through a little painful SSH key creation and connection process. At some point I got stuck and the connection failed. I wondered at that moment how I could revert the process I started and begin with a HTTPS connection instead. Happily, today I got the connection working through SSH but I'm wondering about the value of being able to change the type of connection (SSH vs HTTPS)