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
-
2
votes2
answers2449
viewsNot a git Repository (or any of the Parent Directories): . git como resolver?
Good morning, I’m learning to use git and need to check out a branch. I did the clone in git: $ git clone https://[email protected]/teste/teste-site.git Cloning into 'teste-site'... remote:…
-
2
votes1
answer53
viewsRollback code in repository
Good afternoon, I have a repository where I want to go back to a previous state to do some testing on a branch that I’m currently on and after that, go back to what it was. How can I do that? And…
-
2
votes1
answer484
viewsGit - line breaking problem between different Operating Systems
I’m trying to fix a problem concerning Git, it’s a line break problem in files that were uploaded from a DOS-based operating system and later changed into a UNIX-based OS. What happens: when I…
-
2
votes1
answer1638
viewsHow to set up github in Ubuntu?
Now that I’ve finished my final project on C and delivered at the end of that first semester. I’m trying to configure and post my project to github. I followed a video lesson and got configurar one…
-
2
votes1
answer143
viewsI can’t publish my MEAN app to Openshift
I did everything that feels right. I changed the local variables to process.env, but when I commit and send I get this output: Pushing to…
-
2
votes1
answer694
viewsGit init did not create branch master
I’m trying to give a git init in my project, it returns successfully: Initialized empty Git repository in C:/myprojetPath/.git/ But because when I type git branch, it returns no branch? $ git branch…
-
2
votes1
answer40
viewsError: "update Were Reject because the remote work that you do not have locally"
I’m trying to store a project for Github by git, but when I use the command: git push oringin master Displays this message: Updates Were Reject because the remote work that you do not have locally.…
-
2
votes2
answers1652
viewsSend specific branch with Git to Github
how I can send a specific branch to Github through Git? I am creating a project to learn how to use Gulp and its plugins, and in it I created a folder with source code, called src and a folder…
-
2
votes2
answers125
viewsIs there a workflow in git that determines file access and blocking?
On Git, it would have some way where each user determines which files and for how long, the other user will have access to editing certain files, wanted some way where to avoid file conflicts.…
-
2
votes1
answer414
viewsRecovering Deleted Project in Staged E-git
Good evening guys! Today I tried to use the E-git plugin for a project made in the eclipse, following an internet tutorial. I’ve never had contact with the plugin before. And due to this unprepared…
-
2
votes1
answer830
viewsHow do I stop tracking changes to a file after the commit?
I have a file .properties already committed and would like to stop tracking the changes made to it. Each user who clone the project will configure it in their own way. I tried that command: git rm…
gitasked 8 years, 6 months ago Renan Gomes 19,011 -
2
votes1
answer66
viewsDon’t Commit Specific Line in GIT
Hello, Is it possible in Git to ignore a specific line within a file? It would be interesting for cases where we need to register a password, in this case I need to commit the file, but I would like…
gitasked 8 years, 6 months ago Alexandre Previatti 630 -
2
votes1
answer1548
viewsGIT recover files (git reset --hard HEAD)
I’m a little inexperienced with GIT. I was working on a branch, but I wanted to get some updates on the master branch, but git pull failed as there were no changes committed. Then I just used the…
-
2
votes2
answers2327
viewsIs there any way to make a "git pull" without conflicts?
After much in the life of programming break the head doing FTP to update the system that is running in production, I decided to adopt as default the use of GIT. When I have a new update tested, I do…
gitasked 8 years, 5 months ago Wallace Maxters 102,340 -
2
votes1
answer116
viewsHow to create a project based on Laravel to be the basis of others?
My idea is to create a base administrative panel, where I can use the next sites, without having to copy and paste. At the base I have only control of users and menus, the rest I create packages and…
-
2
votes1
answer174
viewsCommit Structure
I wonder if you have how to change a commit structure, in the case before it is made a predetermined structure, example: GIT_AUTHOR_NAME = '$name(Previamente registrado)' GIT_AUTHOR_DATE =…
-
2
votes1
answer240
viewsHow to restrict Github permissions on Windows? (To ask for password every time)
Hello, I need the password requested in every commit. Currently the password is saved and I don’t need to type it. I think I saved this password somehow (actually I didn’t even know what I was doing…
-
2
votes1
answer579
viewsHow to store passwords in environment variables (and remove them from version control)?
I’m migrating from a local tfs to a private git (probably bitbucket). Today I simply encrypt webconfig, now I will have to take my sensitive data out of version control (Connection string,…
-
2
votes1
answer808
viewsReversal of git pull
I made a Git Pull and overwritten everything in the code. In my company we used SVN and there I would update a commit and the system would always merge everything, but the company migrated…
gitasked 8 years, 3 months ago Rafael Senne 43 -
2
votes1
answer175
viewsIs it possible to reverse the changes from just one commit file?
Suppose it was made a commit and that a file has been modified erroneously. Is there any way to reverse this commit only for the file you want?
-
2
votes1
answer601
viewsCommit a vendor folder file
My vendor folder is by default ignored and I know this is the right one, but it turns out I need to commit a specific file that is in this folder, would that be possible? If not, what other solution…
-
2
votes1
answer57
viewsGIT central repository + external server communication
Good morning I have a question, here in the company where I work we think about creating a shared local server that will be the central repository and all will clone and give the push. So far so…
-
2
votes1
answer687
viewsGit, upload code directly to the server
I wanted to know if it is possible a way to leave all my projects online so that I don’t keep modifying my code to upload it to the server. Go some questions: I use git, wanted to use a branch for…
-
2
votes1
answer93
viewsHow to remove from Git a file that was tracked and is now in . gitignore?
I have a file that was tracked by git, but now he’s on the list of .gitignore. However, this file keeps being displayed on git status when it is changed. What to do to make the git completely forget…
gitasked 7 years, 7 months ago Murillo Goulart 3,391 -
2
votes1
answer4466
viewsIgnoring files by . gitignore
Use the GitLab as a repository for a project Android. I want to ignore the files from the folder openCVLibrary320 at the time of commit/push. I typed the folder as follows in the file .gitignore:…
-
2
votes1
answer842
viewsHow to change the message from a commit sent to the remote repository
I did 3 commits in the local repository and uploaded them to the remote repository using push. I noticed that one of the commits message was wrong. How do I change the message in the following…
gitasked 7 years, 7 months ago Filipe Moraes 8,737 -
2
votes3
answers856
viewsHow to copy a local git repository?
It is already common knowledge that it is not good practice directly copy the physical files (mdf, etc.) from the database. Therefore, there are specific routines that generate external files that…
gitasked 7 years, 7 months ago Murillo Goulart 3,391 -
2
votes3
answers664
viewsHow do I upload all the files in the directory except for a specific one?
I would like to upload all files from the directory, except the config.php. I basically use the command git add . to add all the files, but when you have few edited files, I do so: git add…
-
2
votes1
answer3769
viewsFiles do not appear in the Git repository
I created a new project here and then uploaded it to the server, but when I try to access the repository via URL an Apache page with the name: Index of / site, ie my project folder is empty, but…
gitasked 7 years, 4 months ago Lucas Lima 773 -
2
votes2
answers208
viewsWorking with Github
We are with a project to create an application server based on J2EE + Glassfish in order to update the way we work in our company. In this environment, two programmers will work on the same project,…
-
2
votes2
answers1758
viewsI can’t clone repository with git bash
I wonder why I can’t clone a public Github repository with git bash. I give the command git clone plus ssh or https, but gives the following message: Permission denied (publickey). Fatal: Could not…
-
2
votes2
answers3400
viewsError: Unable to create 'C:/Myproject/. git/index.lock': File exists
Suddenly I went to "commit" my project, when out of nowhere appeared this message: Erro: Unable to create 'C:/MyProject/.git/index.lock': File exists. If no other git process is currently running,…
-
2
votes1
answer982
viewsTwo GIT Projects
If I have a project already being done in git and at some point I need to unite with another project but keep the histories of commit has as?
-
2
votes1
answer117
viewsHow do I synchronize git folders to allow me to use R files simultaneously on multiple stations?
I did an account in Git, and it’s supposed to allow me to use R files simultaneously on multiple stations. But I have fought hard to succeed in the SSH key that the platform asks for. And now I…
-
2
votes1
answer78
viewsPick up commits with keywords
I’m trying to mine some Git data, I need to know how many commits the X file is in and if in those commits I have a keyword for a list. I’m using the following command: git log --all --grep fix…
-
2
votes2
answers2570
viewsGitignore does not work
My . gitignore keeps displaying the folder and some files. I’d like to ignore them all at once. I left him like this ignore /* * /*/ */* *.* .* !.gitignore Not Ignore #plugins/*…
gitasked 7 years, 1 month ago Vitor Nunes 21 -
2
votes1
answer794
viewsBitbucket Team Remote Repository Issues
I created a Team in bitbuckt, and created a Project for this Team and in this Project I created a Repository. I added to Team, an ssh key that I created on my machine (Ubuntu), but when performing…
-
2
votes1
answer933
viewsRunning a git project on my machine
I put a Laravel project of my machine into git with git ignore default. Then to use it on another PC I downloaded it from git from the command line and tried to install Composer: composer install…
-
2
votes0
answers139
viewsDoes switching username destroy commits?
I switched my username to a more professional one. Before I switched I saw that I had some warnings that mistakes could happen when doing this, but I didn’t care because I said they were rare cases.…
-
2
votes2
answers441
viewsOutdated branch pull request in Git
I created a branch of a repository in the Github. I worked on that branch creating their own commits. The branch is in the remote repository. However, the master, developing code in master. In…
-
2
votes1
answer451
viewsHow to join multiple commits from the same file?
I did three commits on even file using git commit arquivo.ext -m "msg". I realized that these three commits would look better together, as if they were one commit. There are ways to do this even…
-
2
votes2
answers1914
viewsAlways ask for password in Git Bash Windows
I wonder if there’s a way my Git Bash can always ask for my password on Windows. I don’t want it to record for anything.
-
2
votes1
answer218
viewsGit Terminal vs Node Terminal vs Windows Terminal
I’m having some difficulty realizing the need to have so many terminals installed on the computer when I need to use git or Node.js. What are the differences between the terminals, what can one do…
-
2
votes0
answers616
viewsHow to solve GIT DIFF encoding problem
for some files git diff presents me instead of accented characters , I don’t really know if the problem is git diff. The GUI I use for git is git Kraken, below is a print of the error.…
-
2
votes1
answer1738
viewsHEAD Detached at origin/master
I started studying a little while ago, Git, and I was creating a branch, but I ended up creating more branch than I wanted. So, I was deleting the branch that I didn’t want with the command line: To…
-
2
votes3
answers10963
viewsConfigure git to existing project folder
I have a project already underway where we are adopting Scrum as a development methodology. Git is all set up to commit and clone, it’s working perfectly. My question is, do you have a way to clone…
gitasked 6 years, 9 months ago Gabriel Falieri 43 -
2
votes1
answer30
viewsHow do I publish all git branchs at once to my remote repository on github?
I have several branchs that I created in my git (Aula1, aula2, aula3) that are variations of the same index.html file, but when I send to github I can send only the master Is there any way to send…
-
2
votes2
answers1059
viewsHow important is the branch in versioning?
Because creating branches is important in software versioning, rather than just using "master" (in large, medium, small or even personal applications)? What advantages do I have in using them? A…
-
2
votes1
answer360
viewsHow do I work with branch merge conflict management?
I did a quick study on git-flow, but I didn’t identify how it works on the merge conflict issue. In an article I read, the author mentioned each contributor pulling the repository, managing…
-
2
votes0
answers365
viewsdiff a file into a specific commit and HEAD
How can I compare the difference to HEAD and the last commit that contains a specific file? To find the last commit that contains the file read the information at git diff file Against its last…