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
-
10
votes1
answer508
viewsHow does the secret of Bittorrent Sync work?
I’m looking for a completely Open Source alternative to Bittorrent Sync, and it seems we have almost every element there: Sparkleshare would do what they wanted to do, just missing the direct…
-
10
votes3
answers2292
viewsHow do I leave a "Default" language on Github?
This is a project done in Ruby, however, how I used the Twitter Bootstrap, it presents as the predominant language Javascript, because it is the language that predominates in the repository. It is…
-
10
votes3
answers1922
viewsWhat is the appropriate amount of changes to a commit?
I have noticed that in many public projects Github, the commits usually contain very small changes. There are several cases of commits with changes in a single line of code. In others, there are…
-
10
votes2
answers2431
viewsWorking with Git on a day-to-day basis with two different computers
I have two workplaces where I work on a project where I use GIT version control. In my studies I’ve learned a few things about GIT using Bitbucket. Let’s think about the following scenario: My…
-
10
votes2
answers11475
viewsWhat is the git diff command for?
I asked that question a little while ago here at SOPT. Some doubts arose, and then the user @Anthonyaccioly recommended me to ask this question. What is the command for git diff?…
gitasked 9 years, 5 months ago Wallace Maxters 102,340 -
10
votes1
answer838
viewsHow do I keep one git repository updated with another?
I participate in two repositories on Github, the second being a clone of the first, and for now private (for security reasons). I cloned this second on my machine to be able to work on top, but in…
-
10
votes5
answers14272
viewsAdd all the latest changes to the commit in git
Whenever I make several changes to files in Git, I go out by adding the changes one-by-one through the git add. It’s a bit of a boring process, I wonder if you have a command to add all the "not…
gitasked 8 years, 6 months ago ldeoliveira 2,015 -
10
votes1
answer3809
viewsWhy use "git branch --unset-upstream"?
I created a project and left it hosted remotely. Dai clone it locally, create the remote (remote), create a test.php file and then add/commit/push. So far so good. Now I make a branch called test,…
gitasked 8 years, 1 month ago Paulo Luvisoto 907 -
10
votes4
answers9952
viewsError: Another git process seems to be running in this Repository
I have a repository with several files, including html, javascript, css among others, and today I had this error, I’ve researched quite a lot more no solutions so far surtiu effect. Another git…
-
10
votes2
answers124
viewsHow to read the Git help manual?
I’m trying to learn more about Git and I’m bumping into a basic question, I don’t know how to read the manual. I understand some things, but I’m not sure yet what the symbols are used for: [],…
-
10
votes1
answer2963
viewsHow to get the original branch?
Whenever I create a branch X, I create it from another. How to know which branch I created the branch from X?
gitasked 5 years, 4 months ago Octavio Augusto 101 -
9
votes5
answers38995
viewsHow to disable (stop, remove, delete) git versioning from a repository
I cloned a Github repository in my directory, but it came full of commits, ie versioned. I wanted to restart it as a repository, from scratch, as I do? I’ve tried the remote: git reset (didn’t work…
-
9
votes1
answer210
viewsNetbeans Project with git and Composer repository
I am developing a PHP project that requires two libraries separately. I am required to use NETBEANS. To develop the three separately but at the same time and because the main project "MAIN PROJECT"…
-
9
votes2
answers598
viewsGit workflow (workflow) using Github?
I need to learn how to clone a project from github to my local computer and, after making the necessary changes, send the modifications back to the remote project. Basically the workflow git by…
-
9
votes2
answers649
viewsWhen should I maintain or delete a branch?
I’m working on a project and I’m starting to use a versioning control system, Git. When I create a branch to introduce a new functionality and after its completion, I merge with the master. What is…
-
9
votes2
answers16273
viewsGit push permission and error 403
I’m trying to push to my repository, but git always gives me this error: remote: Permission to danielswater/social.git denied to Michelleg-. fatal: Unable to access…
gitasked 8 years ago Daniel Swater 1,251 -
9
votes2
answers1789
viewsWhere does the Git pull point?
I was reading the Git documentation about pull and I got confused: So let’s create a hypothetical sequence: I cloned the repository I made a git branch which shows only the master. The command git…
gitasked 7 years, 5 months ago zwitterion 2,876 -
9
votes1
answer3518
viewsPush git "Everything up-to-date " Data is not actually sent
I’m pushing to a repository in gitlab.com. I get the feedback: Warning: redirecting to https://gitlab.com/fellipesillvaoff/Dados_Agronomia.git/ Everything up-to-date In my mind, it worked. In…
-
9
votes1
answer668
viewsCan I accept a pull request locally? Via terminal or Github desktop?
I can accept pull request open locally, via terminal or Github desktop.
-
8
votes2
answers11748
viewsHow do I get back to the previous commit from a remote branch?
I have an app that has some local and remote branchs, only I had to perform a git reset --hard HEAD~1 in the branchs dev and development(as in the image below), and each of these branchs have remote…
gitasked 10 years, 7 months ago augustoppimenta 527 -
8
votes1
answer10842
viewsChanging remote path in Git
PROBLEM: I gave git clone in the repository of Web Starter Kit and the project already comes with Git started and with git remote origin master configured as Git default. So if I execute the command…
-
8
votes1
answer2098
viewsHow do I use git to organize my development, approval, and production environment?
We are adopting the use of an homologation server here in our company, but we still do not know how to organize the development flow from this paradigm, since currently each developer when he wants…
-
8
votes1
answer95
viewsHow not to ignore directories with the same name?
I have the following structure: nbproject public_html build index.min.html style.min.css index.html style.html build dist Man .gitignore to ignore the Netbeans configuration files is like this:…
-
8
votes1
answer1769
viewsHow to clone/download a repository with just the last commit?
I read a while ago that it is possible to clone a repository in a more performative way just by downloading the last commit, that is, download the repository without previous changes of other…
-
8
votes2
answers9322
viewsHow to push remote branches?
I have a local branch called ResultadoAPI, the remote is located in origin/Feature/Resultadoapi I tried to push in several ways but this remote continues outdated…
gitasked 9 years, 9 months ago Daniela Morais 4,687 -
8
votes1
answer153
viewsHow do branches in GIT work in relation to SVN?
It is known that in the SVN, when one creates a branch (or even a tag), a copy of all the files of trunk to the folder inside the directory branches. Little by little I’ve been using git and I…
-
8
votes3
answers477
viewsHow to use GIT connected to the server?
I’ve been looking for some time about how I could replace mine filezilla and I got some answers that it’s possible to use git as an intermediary so I can run my site/project according to what’s in…
-
8
votes1
answer618
viewsWhy does the reduced version of git SHA1 code have 7 characters by default?
I’m studying Git and came across the command cherry-pick, who recovers a commit specific. The parameter passed for this command is the code hash generated to identify only that commit. However, in…
-
8
votes2
answers431
viewsCheck if git is installed using Node
I’m starting in a desktop application with the use of Electron however I need to check if there is Git installed on the system because it must use git As the idea is to distribute on Windows, Linux…
-
8
votes2
answers59817
viewserror: failed to push some refs
trying to push to the repository and being rejected $ git push origin master To https://github.com/me/myproject ! [rejected] master -> master (fetch first) error: failed to push some refs to…
-
8
votes2
answers245
viewsWhat’s the benefit of signing a commit with a GPG key?
What changes from a signed and verified commit to a unsigned commit? What’s the benefit of signing commits with the GPG key?
-
8
votes2
answers537
viewsHow to recover only one specific stash file?
Suppose I did have a.txt, b.txt and c.txt that have been modified in a given branch and that I have used the command git stash in all of them to hide the changes. If I rotate the git stash pop, I…
gitasked 5 years, 1 month ago Wallace Maxters 102,340 -
8
votes2
answers626
viewsWhat is the . gitattributes file for?
When should I use the .gitattributes ? What can I do with it ? When not using this file ? It’s good practice to always have a file .gitattributes in my repositories ?…
gitasked 4 years, 11 months ago Bruno Campos 226 -
7
votes6
answers14692
viewsHow to create a Git server on the internal network?
You can create a Git local server? I would not like to be dependent on the internet.
-
7
votes1
answer9290
viewsHow do I remove a staging area file in git?
I accidentally added all the files to the staging area of git with the "git add." , how to remove a file from staging area so it is not commited?
-
7
votes5
answers140
viewsIs it possible to scroll to git bash?
I just installed the git and I chose to install the git bash (command line tool) together, to use all commands of the git for him. However, I noticed that mouse scrolling does not work at this…
-
7
votes2
answers20956
viewsHow do I get changes from a specific branch/branch of a remote repository in GIT?
I created a new branch/branch on my local machine. So I made a commit and a push to the remote repository in Bitbucket. I checked in Bitbucket that the new branch/branch was successfully created.…
gitasked 10 years, 11 months ago morphinduction 473 -
7
votes2
answers761
viewsHow to create and remove aliases in GIT
I would like to know the commands to create an alias, I learned that I can shorten my commands and make it faster and more productive, but I still don’t know how to do this. Does anyone know the…
-
7
votes1
answer275
viewsConfigure user.name
When I write the command git config --global user.name error occurs: could not lock config file z://. gitconfig No such a file or Directory. The installation was done by default on C: but when I…
gitasked 10 years, 9 months ago Carlos Ruy 73 -
7
votes1
answer8430
viewsMake git go through proxy
I’m setting up my work environment here at the service. It is windows 7 and has a proxy with user and password. I want to download a project from my repository on Github and need to go through the…
-
7
votes6
answers19214
viewsProblem to publish project - Github
I’m trying to publish a project on Github, but every time I give a git push message appears: error: src refspec source does not match any. error: failed to push some refs to…
-
7
votes1
answer1470
viewsHow to commit only to a piece of a file in Git?
When modifying multiple parts of a file, you can commit to just one piece (for example, a new function)?
-
7
votes1
answer308
viewsDeploy with GIT x Deploy with Gulp
I still can’t figure out which is the best deploy on a site. I explain how I’m doing: GIT I started a local repository I hosted my repository on some service like Github/Bitbucket I hacked into the…
-
7
votes1
answer12506
viewsGenerate ssh key in git
I could use a little help! These days I was in college, committing some projects in my repository on Github through the Git, and going up some files in the repository, when I went up the last one…
-
7
votes2
answers2506
viewsCreating two projects in a single Git repository
I am creating a project in Java web and want to create another project on Android. But I would like to create only one repository and within it own these two projects with their respective trees…
-
7
votes1
answer276
viewsproblem setting up a GIT repository with Bare
I have a repository of a server that was a problem and could not clone its repositories for the new server GIT, so I copied the entire application development environment through the USB stick, it…
-
7
votes2
answers998
viewsIs there any way to change a commit message?
I work with git in all projects of the company where I work. Unfortunately, some programmers end up posting some kind of message, in a hurry, in a commit. This makes things difficult, because…
gitasked 8 years, 11 months ago Wallace Maxters 102,340 -
7
votes1
answer301
viewsWorkflow to revert dev branch changes to master
The branch dev is automatically merged to the master; this, for his time, there’s a deploy automatic application. The branch dev has some changes ahead of the branch master and will be disposed of.…
gitasked 8 years, 7 months ago Marcelo de Andrade 7,261 -
7
votes3
answers36730
viewsError pushing origin master on github
I have the following error in github when I’m going to push. Please make sure you have the correct access Rights and the Repository exists. I created the repository and as I was already with the…
-
7
votes1
answer246
viewsHow do I stop watching the changes in a particular file?
The scenario is as follows. I work on a project that contains a JSON file with database configuration. Something like: { "db_config": { "conn_string":…