How do I undo the most recent local commits in Git?

I accidentally committed the wrong files to Git, but didn't push the commit to the server yet. How can I undo those commits from the local repository? The only way seems to be to copy the edits in...

git push says "everything up-to-date" even though I have local changes

I have a remote gitosis server and a local git repository, and each time I make a big change in my code, I'll push the changes to that server too. But today I find that even though I have some...

Git: Message 'src refspec master does not match any' when pushing commits in Git

I clone my repository with: git clone ssh://xxxxx/xx.git But after I change some files and add and commit them, I want to push them to the server: git add xxx.php git commit -m "TEST" git push...

How do I properly force a Git push?

I've set up a remote non-bare "main" repo and cloned it to my computer. I made some local changes, updated my local repository, and pushed the changes back to my remote repo. Things were fine up...

fatal: does not appear to be a git repository

Why am I getting this error when my git repository url is correct? [email protected] /c/mySite (master) $ git push beanstalk master fatal: '[email protected]/gittest.git' does not...

Authenticate with GitHub using a token

I am trying to authenticate with GitHub using a personal access token. In the help files at GitHub, it states to use the cURL method to authenticate (Creating a personal access token). I have...

How to clone all repos at once from GitHub?

I have a company GitHub account and I want to back up all of the repositories within, accounting for anything new that might get created for purposes of automation. I was hoping something like...

Clone private git repo with dockerfile

I have copied this code from what seems to be various working dockerfiles around, here is mine: FROM ubuntu MAINTAINER Luke Crooks "[email protected]" # Update aptitude with new repo RUN apt-get...

Git error: "Please make sure you have the correct access rights and the repository exists"

I am using TortoiseGit on Windows. When I am trying to Clone from the context menu of the standard Windows Explorer, I get this error: Please make sure you have the correct access rights and the...

Can you get the number of lines of code from a GitHub repository?

In a GitHub repository you can see “language statistics”, which displays the percentage of the project that’s written in a language. It doesn’t, however, display how many lines of code the...

Atlassian Stash - Permission Denied (publickey)

I'm actually in the process of setting Atlassian Stash for my Workplace. I've ran into this issue which I'm not able to fix. Note, this is running on a Windows 7 64bits installation. When setting...

How to git pull from public repo via ssh without a key?

I have a public repo, https://github.com/rlpowell/config . I used to be able to run git pull without any ssh keys (i.e. from cron), and it work work fine, using the...

Getting permission denied (public key) on gitlab

My problem is that I can't push or fetch from GitLab. However, I can clone (via HTTP or via SSH). I get this error when I try to push : Permission denied (publickey) fatal : Could not read from...

composer generates a .git directory with my package from GitLab

I have a local GitLab running. I configure in a composer.json that install a package or bundle from my gitlab, I made that part, it was complicate but i did it. The problem that I have is that my...

lxml etree HTML parser changes order of nodes (<center> inside <p>)

I'm currently facing an issue where I can't explain the etree behaviour. Following code demonstrates the issue I am facing. I want to parse an HTML string as illustrated below, change the...

Can I re-create node_modules from package-lock.json?

I cloned a repository from github which has a package-lock.json (but no package.json). Then in a git bash terminal I go to the directory and run npm install but I just get a message saying there...

Intelij IDEA ssh-key git repository connection denied

I couldn't find issue like mine with a solve so I need your help. In Git Bash I can get access with ssh [email protected] I added public key to GitHub and I can get answer with ssh -T...

'Git: gpg failed to sign the data' in visual studio code

After a fresh Linux install I'm trying to set up my environment and I keep getting the Git: gpg failed to sign the data error upon committing changes locally. I'm using Visual Studio Code,...

BUILD FAILURE: No main.py(o) found in your app directory

I am a beginner in kivy and trying to build an app using Ubunto microsoft app on windows 10 any kind of help will be appreciated. Although I put it in same location of the buildozer.spec I keep...

xcrun: error: unable to find utility "xctest", not a developer tool or in PATH

I am using Xcode command line tools instead of XCode app in my MAC. When i use swift --version I get Apple Swift version 5.2.2 (swiftlang-1103.0.32.6 clang-1103.0.32.51) I cloned a project...

Compile error [VueLoaderPlugin Error] vue-loader 15 currently does not support vue rules with oneOf

I have project (Laravel with vue.js)downloaded from Gitlab and after i installed the dependencies (npm install & composer install), i can not compile it,as when i try typing: npm run watch, i got...

Composer package installed through php v7.1 but not php v7.2

In my Homestead development environment, I've tried to install a composer package called ralouphie/getallheaders through php v7.1; it's done successfully. But when I am trying through php v7.2, it...

How can I Transfer Learn using TPU on Colab

I am trying to teach myself Transfer Learning techniques using Tensorflow 2 on Colab. Using GPU is working fine but as everybody knows Google has its TPUs and they are faster than GPUs. In Colab,...

Error connecting to agent: no such file or directory - adding key to ssh agent

I am trying to add key that I have generated to the ssh agent. Below are my steps C:\repo>ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key...

Detox on Bitrise not working on Android - React Native

I have a detox configuration for my react native project and it works & passes for both platforms when I do it locally. Recently I tried adding this to the Bitrise workflow and it seems that there...

How to use OpenCV with GPU on Colab?

I am trying to make human detection using YOLOv4 on Colab. The code includes this lines: import cv2 net =cv2.dnn.readNetFromDarknet(yolo_config_path,yolo_weights_path) if cuda: ...

Go update all modules

Using this module as an example (using a specific commit so others will see what I see): git clone git://github.com/walles/moar Set-Location moar git checkout d24acdbf I would like a way to tell...

After migrating to an Apple M1, my app doesn't start anymore

1 year ago I developed an application. The latest update I published was 2 months ago. Since then, I switched from a MacBook Pro 2017 to an Apple Air M1. Today, I wanted to make some updates to...

android studio can't find runner

I cloned a project from git and built it in android studio without any problems but I don't have (Run app) in android studio and also when I run run-android I get this error: Failed to launch...

git clone error error: RPC failed; curl 92 HTTP/2 stream 7 was not closed cleanly before end of the underlying stream

I keep receiving this error each time I try to clone a new repository, the second time I clone it, it works fine. What could be the cause of it and how to resolve it? Cloning into...