Most voted "git" questions
Git is an open-source distributed version control (DVCS) system. Use this tag for Git-related questions, DO NOT USE for programming issues involving a Git repository.
Learn more…924 questions
Sort by count of
-
0
votes0
answers69
viewsI cannot upload my project to the Github repository
Good afternoon. I took a course on Git and am following the steps to insert a project into a Github repository. When I run the "git push origin master" command on Git Bash, the program redirects to…
-
0
votes0
answers19
viewsHow do you "pull" a Branch from origin without git pull?
I am in a joint project, in origin was created a branch that I do not have on PC, how to copy this Branch to my machine without having to give a pull ? I’d like to have Branch exactly as she is,…
-
0
votes1
answer190
viewsCreate branch from another branch
I don’t know if the title makes clear what I want to do but here’s the thing, I have the develop(root) and the develop2.0 (system overhaul). I would like to know how to create a branch that when…
gitasked 3 years, 8 months ago wrafanunes 21 -
0
votes1
answer72
viewsGit status: ERROR
Hi, I have a problem with my git control. When I send the "git status" command to I see the changes of my current project, it returns me this error below: warning: could not open directory 'Ambiente…
-
0
votes0
answers108
viewsI tried to give git pull origin main but fell into this error "fatal: couldn’t find remote ref main"
I’m learning to use git is my first time but I’ve tried to give git pull origin main but always falls into a mistake saying * branch main -> FETCH_HEAD Already up to date. I’ve tried everything…
-
0
votes0
answers53
viewsDelete a GIT folder when 10Gb is exceeded in the project
I went to commit to a project of mine and was presented the message that exceeded the limit of the 10Gb project, however, I could not delete a folder and its files in git bash or directly in gitlab.…
-
0
votes1
answer69
viewsWhat is git send-email for?
I’m needing to use git send-email to send an exercise via email, but I couldn’t understand the purpose of this command in git. Can I send the repository with the files via email? How it works?…
-
0
votes0
answers30
viewsHow do I reuse content from one branch to another?
I currently have a project with two branches, <main> and <Development>. To <Development> I use to develop what I intend to do, and each "final" version of what I finish. Here comes…
-
0
votes1
answer111
viewsGit push to in "Total"
I have some projects hosted on Azure and I use git for versioning, they all worked well but from one moment to another one of these repositories started to give problem and does not end the push…
gitasked 3 years, 8 months ago Gabriel Queiroz Schicora 507 -
0
votes1
answer51
viewsSqlite database conflict when merging into git
I’m working with someone else on a Django project and she owns the main repository. I have a Fork from this repository and want to update it with the original. I created the upstream: git remote add…
-
0
votes2
answers52
viewsI cannot complete the push command, the command starts the execution but does not finish
After performing the steps below the push was started but was not completed, just does not complete, does not display any message. $ git init $ git add * $ git commit -m "commit inicial" $ git…
-
0
votes1
answer142
viewsgit push origin master is not working
I’m doing the following flow: git init git add README.md git commit -m "teste" git branch -M main git remote add origin https://github.com/Brininhoxd/teste.git git push -u origin main when I give…
-
0
votes1
answer28
viewsChange --push-option with Hooks
You can change the --push-option message with a local hook when pushing? Example: When rotating the command git push origin master, the pre-push hook would inject the "test" value into the…
gitasked 3 years, 4 months ago Pablo Harger 121 -
0
votes0
answers35
viewsHow to delete all files from one branch and copy from another branch
I have a branch called stage and another dev dev gets all temporary branchs from Features and fix but not all of them are approved and go to Stage. The problem is that dev has so many commits that…
-
0
votes1
answer60
viewsI command Git to clone repository but it only clones the ". git" and ". gitignore" folders
I do the command to clone the code that’s in Github but Git only clones the ". git" and ". gitignore folder". Here is my repository: The project: (If I’m putting up too many pictures, excuse me...…
-
0
votes0
answers45
viewsGit deleted my folders
I gave one git status in the repository and this appeared: I don’t know how it happened, but I want the folders back (I never put git add . yet) Changes not staged for commit: (use "git add/rm…
-
0
votes1
answer85
viewsHow does Git save edited files from a commit?
I understood that git add creates the hash of the changed files in the project and adds this hash as a reference to staging. In the git commit it creates a hash for all project files, saves as a…
gitasked 3 years, 3 months ago Luiz Utzig 19 -
0
votes0
answers29
viewsError in git commit
I’m starting to use git now and when I try to do git commit happens the following: fatal: failed to expand user dir in: '~./gitmesage' I already gave git add . and yet the error repeats itself.…
-
0
votes0
answers13
viewsSempra gives error when trying to upload a Nodejs application in Heroku
When executing the command: git push heroku master LOG: -----> Build failed We're sorry this build is failing! You can troubleshoot common issues here:…
-
-1
votes1
answer82
viewsGIT command to delete the last log without affecting the current version
I would like to delete the last commit log that I did, the commit log that’s there is from a file that I deleted, but I don’t want it to be in versioning, which git command I need to do for it?…
-
-1
votes1
answer475
viewsHow to add the files in . gitignore in Android Studio?
At some point in our project, local settings files were sent (workspace.xml, app.iml) to the git. Among these files, some of the Gradle (cache.properties.lock, fileHashes.bin, fileSnapshots.bin,…
-
-1
votes1
answer67
viewsChange in GIT log
I would like to change my GIT server log using a hook. The situation is this, when someone gives a commit and the local machine is with the wrong date, in the log appears the time of the local…
-
-1
votes1
answer249
viewsRemote changes in branch not coming to location
I have a simple branchs structure in the repository (bitbucket), the master, where the production code is located and another branch releases, this for testing. Changes were made to the branch…
-
-1
votes1
answer1886
viewsHow to import projects and modules from Android Studio via Git
Hello! Good afternoon. I am a bachelor’s student in information systems and am practicing development for Android. My teacher provided a Git link containing a "pack" of each subject covered in his…
-
-1
votes1
answer219
viewsWhat commands for Github on the Linux Terminal?
I have a PC at home (Windows) and in college I use Linux Mint. At home I installed a Github program for desktop, and from what I saw only has for Windows, and only 64 bits say of passage. I started…
-
-1
votes1
answer80
viewsKeep Fork Updated in git Hub
I joined the Github site and did the Fork of a project, but the original Project got changes, as I do by the site to update the project I cloned? I would like to know if there is any option for the…
-
-1
votes1
answer112
viewsFiles do not appear after deleting gitignore
I created a repository locally, but before uploading the files into the server repository I used sourcetree to ignore files that I didn’t need to upload and then he created one. gitignore, however I…
-
-1
votes3
answers495
viewsJoin two projects into one
I have two projects in Visual Studio, Project 1 has some things that Project 2 doesn’t have, and Project 2 has some things that Project 1 doesn’t have. So I need to merge the two and turn it into…
-
-1
votes1
answer106
viewsCreate a Github/ git repository
I’m trying to create a repository of github, but something is going wrong and I can’t identify what: I’m using: windows 10 // git version 2.22.0.windows// Node V10.16.0 // Browser Sync v2.26.7 //…
-
-1
votes1
answer364
viewshow to resolve Git public key permission error within VSCODE
My vscode does not allow you to exchange data between Git and Github (push, pull and Sync), and this only happens when I use the vscode tools (when I open the "Ctrl shift p" search bar, or when I…
-
-1
votes1
answer214
viewsEclipse adds tag to code when trying to resolve conflicts
Guys, the following situation serves only to exemplify what happens when I try to resolve a conflict over the Eclipse. I know how to resolve a conflict, the problem is that after solving it these…
-
-1
votes1
answer153
viewsGit connection to the Jenkins server on Azure: Host key Verification failed
In the repository in the URL: git@xxxxx:root/ghnetsoft-utilitario.git Made this mistake: Failed to connect to repository : Command "git ls-remote -h git@ xxxxxx :root/ghnetsoft-utilitario.git HEAD"…
-
-1
votes2
answers387
viewsError when trying to commit to github
this msg appears in git when I try to send to github On branch origin Nothing to commit, Working Tree clean…
-
-1
votes1
answer85
viewsI no longer know how to give the deploy of the chat Rocket on Heroku. Help?
1 - I cannot upgrade npm. This error happens: Your configured Registry (https://registry.npmjs.org/) may not support Audit requests, or the Audit endpoint may be temporarily unavailable. I have…
-
-1
votes1
answer51
viewsWhen I try to play my machine repository in the Google cloud repository I get an error saying : remote origin already exists
I have an application already created, I’m using Google cloud and I also have a repository on github. When I try to play my machine repository in the Google cloud repository I get an error saying:…
-
-1
votes1
answer137
viewsI wanted to send two files from my folder to my remote repository on github and it went wrong after I logged in. What to do?
I used the command > git push --set-upstream origin master and could not send from my local repository to my remote repository, on the screen appeared the following code: $ git push…
-
-1
votes1
answer32
viewsgit push - unbale to acess
When trying to perform a git push to github it returns me the following: git push fatal: unable to access https://github.com/renannasc/fsphpdeveloper.git/': Could not resolve host: github.com…
-
-1
votes4
answers3254
viewsGIT error: pathspec 'master' Did not match any file(s) known to git
I need help. I don’t know much about git and I’ve started to move it now. Somehow I created a new branch and now I can’t get back to the master branch. Error appears: pathspec 'master' Did not match…
gitasked 4 years, 3 months ago Alessandra Burckhalter 11 -
-1
votes1
answer101
viewsHow to use Top Langs in Git Hub
Can anyone tell me how to use ! Top Langs on github to display the languages that are being used most by me in my profile repository?
-
-1
votes1
answer40
viewsCredentials in php file
I want to put the credentials in a php file and I will use the following solution to deploy in production: config.php in the local environment $username = 'adm'; $senha = 'aaa'; push to the…
-
-1
votes1
answer48
viewsChange global branch to main in Ubuntu 20
How do I permanently (globally) change the git branch from "master" to "main" in Ubuntu 20?
-
-1
votes1
answer134
views$ git push -u origin main remote: Repository not found. fatal: Repository 'https://github.com/fretagi/pirple-apple.git/' not found
I’m trying to push according to: git remote add origin https://github.com/fretagi/pirple-projects-apple.git git branch -M main git push -u origin main but he gives that mistake: fatal: remote origin…
-
-1
votes2
answers228
viewsHow to delete a commit?
I made a few wrong commit’s and I’m not getting one deleted specifically. All that were made after they were erased and it was what I wanted, I used the command git reset --hard + hash commit and…
-
-1
votes2
answers133
viewsGit Push repository problem (with other people)
Briefly, I’ve tried to give git push, git pull, accept the changes, I’ve given commit, git push --set-upstream origin main, git push -u origin main. Error below if you cannot open the image: !…
-
-1
votes1
answer24
viewsHow to use a repository like Package?
I started a project with create-React-library and made several customizable components with TS. A kind of Material UI. But this project cannot be public access. I previously wanted to post on npm, I…
-
-1
votes1
answer30
viewsGit Bash is unable to open a connection with my authentication agent
I’m trying to set up my github in windows by git bash with the help of this blog: http://gabsferreira.com/instalando-o-git-e-configurando-github/, but git bash can’t get a connection to my…
-
-1
votes2
answers37
viewsGit: I used the wrong credentials and now when I try to download the SSH repository, it’s fatal
When trying to download repository in SSH, I filled the wrong credentials and now only this error appears: a assinatura falhou: o agente recusou a operação [email protected]: Permissão negada…
-
-1
votes3
answers52
viewsSSH problems in Git / Github
I’m trying to push some files to my github, but I started having this problem: When I give the git push -u origin master or git push -u origin main command, the message appears below…
-
-1
votes1
answer67
viewsDo you need to review the node_modules folder in Git?
I’m creating an Angular project. When I went to add the project to Git to commit, the terminal reported that the .gitignore is ignoring the folder node_modules. I realized that the folder has many…
-
-1
votes0
answers22
viewsHow to open a repositiorio of an organization in Xubuntu?
I am trying to download a repository that is in an organization that I am part of, so I downloaded the Github Desktop Linux version, in addition to git (both are updated). However, when I access…