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
votes1
answer89
viewsGit Flow - Not creating the tag in master
We’ve just started working with Gitflow and we’re having a problem that isn’t creating the master tag... When we will generate a production version (master), Create a release branch: git flow…
-
0
votes2
answers286
viewsHow to restore a modified file that was error from Git?
Class, I committed (and then pushed) a file in git to where everything was fine. When I returned to continue the work, I made some changes that resulted in errors and bugs. This time I haven’t…
gitasked 4 years, 9 months ago Rodrigo Emanuel 47 -
0
votes1
answer276
viewsHow to join specific commits using git rebase -i?
How do you join commits Clearing index using the git rebase -i skipping the commit Removing . env? I know that the squash joins commits, but like skipping a specific commit? I have the following…
gitasked 4 years, 8 months ago Lucas Emanuel 685 -
0
votes1
answer74
viewsError trying to save git repository log to txt (Python) file
Hello, I’m trying to write a code in Python to save a git log from a git repository to a file . txt in a different directory using the function subprocess.Popen(). I know the command line syntax is:…
-
0
votes0
answers32
viewsGithub/Git comVS Code
Good afternoon, My Lords, I’m working with Visualstudio Code,I need to send some files to github, but every time I start the commit I get an error message, not allowing to continue, (follows below),…
-
0
votes1
answer26
viewsGITHUB doubt subdividing the repositories
There is how I create a folder, and in this folder I put the projects separated by programming language? For example, my PHP projects I create PHP repository, and there it will be... institutional…
-
0
votes0
answers20
viewsI can’t track directory to put in GIT
Juli-yumes-Macbook-Pro:~ juliyume$ cd Documents Juli-yumes-Macbook-Pro:Ocuments juliyume$ ls 44261182807-IRPF-2018-2017-origi-imagem-declaracao 2.pdf Whatsapp Image 2019-01-17 at 15.29.04 (1). jpeg…
-
0
votes1
answer50
viewsShould I upload to my Git repository the static files generated by Django’s collectstatic?
After generating the static files from my web app using: python manage.py collectstatic I am in doubt if I should send or not the content generated in the directory static/ to my repository. It’s…
-
0
votes1
answer44
viewsHow do I keep copies of files in a Git repository?
I maintain this repository https://github.com/silash35/qpdftools-packages that contains binary files from another repository. It was created to maintain the files needed to build packages. Currently…
-
0
votes1
answer457
viewsGit error: "remote: Repository not found. "
Every time I try to execute the command git push -u origin master, Git generates a repository error not found. I followed exactly the step by step that is written on Github. Below is everything I…
-
0
votes1
answer815
viewsHow to find the git address of an already created repository?
I started working now and the company uses git to update its system, but I’m alone in the IT department as I get the address of that repository I’ve tried to get the msm address I use for git clone…
-
0
votes1
answer217
viewsQuit git log or git diff
I turned the remote git log and visualized all the content, until reaching the end according to the print: However, I can’t do anything else in this terminal window. I’ve tried writing exit, type…
-
0
votes1
answer710
viewsProblems creating branchs -fatal: Not a Valid Object name: 'master'. ; bash: id: No such file or directory
I started using git recently, created a local repository and a small project, versioned and uploaded it to an online repository, and no problems occurred, however, when I started developing another…
gitasked 4 years, 5 months ago José Daniel 1 -
0
votes1
answer877
viewsI can’t git pull on the server
I do maintenance on a website. And we always push the changes and the server terminal do a "git pull". Everything was going well until this time the following error appeared. error: Pulling is not…
gitasked 4 years, 5 months ago Cristian Benites 133 -
0
votes1
answer46
viewsI accidentally modified the Git branch of my project in android studio
Guys, I was working on my project when I accidentally clicked on something, and apparently I "lost" the newer versions. I appeared this message on my android console studio: Warning: you are leaving…
-
0
votes1
answer71
viewsGit Pull Request
I have a branch where I had to do several commits to test CI/CD, and this branch has an open PR. However these commits were test commits and I don’t need their history. In most cases I commented…
-
0
votes0
answers27
viewsDisplaying a branch other than Master in the repository
Good afternoon to all we have our own server and versioned with git. The test team needs to test a branch other than master, and they don’t have git installed on their sites, I need the site to…
gitasked 4 years, 5 months ago Jonathan Nunes 1 -
0
votes3
answers1138
viewsWhat do I put in the gitignore?
I’m learning to play git and GitHub these weeks. I came across a certain doubt: I figured we could put a file .gitignore in our project for it to "ignore" certain files, so it is really necessary to…
-
0
votes1
answer137
viewsClone commit from a project on Github
Hello, everybody. So, I’m taking an angular course that has a project hosted on Github. But I don’t want to clone the project ready. I’d like to clone/download the commit with the initial project…
-
0
votes2
answers70
viewsWhich files should be ignored by Git in a Mongodb database?
I am creating an application with Mongodb and after initializing the repository, I entered the command git add * in the root directory of my project. When I went to upload the repository to Github,…
-
0
votes1
answer64
viewsCan you configure an automatic pull using windows task scheduler?
I’m trying to find a way to update a local system on a server using git versioning to have better security and control in my project, but I’m still pretty naive about it. Turns out I wanted to find…
-
0
votes1
answer115
viewsVscode / GIT - Put only a few file changes into Stage?
Using the VSCODE + GIT, made several changes in a same file, on a necessary implementation. In order for these implementations to be made, it was first necessary to adjust/correct a pre-existing…
-
0
votes1
answer56
viewsGit/ Github Repository Error
Devs, I’m starting to use GIT and GITHUB and unfortunately I chose a local repository different than I would like, I tried to delete this and ended up creating more repositories, including with…
-
0
votes2
answers464
viewsHow to make a GIT repository a common system folder again?
Good evening, I’m learning GIT. At first I created my desktop folder as a repository. Which contains several files that have nothing to do with my projects. So I was wondering if you have a way to…
-
0
votes1
answer1218
viewsGit can’t push my project... and other commands are also giving fatal
Hello again to all I’m going through a very boring problem... and so far I haven’t been able to identify.. Whenever I try to push or pull in my project I get the messages below, and nothing goes up…
-
0
votes1
answer77
viewsProblems pushing to Github
Hello, my friends! I’m trying to push to Github in one of my directories that I’ve done several times. Only now you’re making a mistake I’ve never seen before: My command: git push Github…
-
0
votes1
answer46
viewsMaster updated alone with the checkout
Good morning, everyone! I was working on a branch and when I ran the checkout for master (git checkout master) it updated without me doing the merge. The following message appears:…
-
0
votes1
answer119
viewsWhat is the best way to update a branch?
Currently when I update a branch with the modifications I made on another computer I do the sequinte: git fetch -p Then the origin/branchName and branchName are separated being the branchName…
gitasked 4 years, 2 months ago Vinicius Morais 1,293 -
0
votes1
answer128
viewsEven after adding the file to gitignore, it continues on github
My situation is this: I created a project, I went up on github and after a long time, I realized that I went up the folder node_modules, and I don’t want her there. I created the .gitignore and add…
-
0
votes1
answer81
viewsGit is allowing branch changes even with commit-free changes
Usually when I work with git, I make some changes to one branch and try to check out another without committing it displays the message: Changes not staged for commit: (utilize "git add…
-
0
votes0
answers35
viewsRemove the first commits from Git Code
Is there any way to reduce the history of git by removing older commits? Assuming a Repo has 5000 commits and removing the first 2500 commits.
-
0
votes0
answers71
viewsdoubt about git in fetch and push
In the local project directory start git version control: git init Enter all project files into git version control: git add . Commit to the project: git commit -m "brief description of the commit"…
-
0
votes1
answer38
viewsNegation selector of . gitignore not working
I have a repository where I put exercises done in C, when compiled, generate an executable without extension (on Linux, on Windows generates a file ".exe"). I just want the files with extension to…
-
0
votes2
answers56
viewsQuestion about GIT and how to use an existing project on the server?
I’m currently getting into the git method, and I’ve really liked the way the development flows. But I ran into a problem. I have several projects that are already on their proper servers, sent via…
-
0
votes1
answer47
viewsGithub sub-folder link to another repository
I have a repository of free books of programming, and they’re getting too heavy and it’s hard for anyone to clone and climb anything, so I wanted to do the same as the repository of Zeno rocha…
-
0
votes0
answers66
viewsGIT with local network server as repository
Hello, I have a situation particularly similar to this one Configuring git for local network And at the same time, I think this one would also be a strong candidate for my scenario How to create a…
-
0
votes0
answers87
viewsupdate remote repository with changes made to local repository
I updated my local repository with new information and want to update my remote repository with these changes? what commands should I use to achieve this goal? I’m using git bash from windows.…
-
0
votes0
answers134
viewsIs it possible to transfer files from a branch to a main branch? (Github)
Hi guys! My question is about Github. I moved files to a branch that is not main, and I want to move to the main branch (main). Is there a command in Git Bash to do this? (In case it would be files…
-
0
votes2
answers145
viewsUpdate commits to consider changes in . gitignore
I have the following situation: I created a repository git from a remote of the Github. I did several commits in the local repository (without push to the remote). When I went to perform push for…
-
0
votes0
answers47
viewsgithub branch in git
I made a Fork of a project I’m doing in a group, in Github through the branch tabs I made 3 new branch, in my local repository in the Windows 10 operating system I type the git branch command to…
-
0
votes2
answers56
viewsOrigin/master problem in git when trying to commit
I’m trying to commit to updating a project in git, but I always end up having the same problem,he doesn’t because he claims that origin/master has different commits each. I followed what the program…
-
0
votes1
answer34
viewsShare code (React or Vue) between more than one project
Let’s say that I have the web application in React or Vue. Part of the code I will reuse to several clients, about 70%. The other 30% would be layout changes and some extra COMPONENT that each…
-
0
votes1
answer91
viewsFile . suo appears changed in the repository, but I have not modified anything
always appears this modification when opening vsCode…
-
0
votes1
answer85
viewsError pushing Github via Visual Studio
Hey, I got a problem! I can’t push Visual Studio to Github. When I try to get back "Error found while publishing to remote repository: Git failed with a fatal error. Unable to access…
-
0
votes1
answer30
viewsAdd a remote repository without merging
Guys I need a super help! I develop games in the course I do and use unity3d as Engine. I own a project that can be versioned by unitycollab, but this is used for production within the Unity…
-
0
votes2
answers256
viewsClone your own Github project on a different machine
I’m starting studies with Git and Github and I have a question I couldn’t find in the documentation or forums. I have 2 computers, staff and work. I started a project on Github with the personal…
-
0
votes1
answer54
viewsError opening text editor in Git
I’m trying to change the message of my last commit through Git Bash using the command git commit --amend. However, when it attempts to open the editor, Git generates the following error: $ git…
-
0
votes2
answers123
viewsHow to disable a branch on Github?
Good afternoon, I have a repository on Github with a main branch, and the idea is that with each new Feature, this is done from a new branch, which at the end should be merged with the main branch,…
-
0
votes1
answer84
viewsCommitizen: Is it possible to override the "git commit" command?
Context I wish I could use the command git commit and be executed the cz. What happens I install the Commitzen Executed git commit Opens the common Git interface to create the commit message What I…
-
0
votes0
answers51
viewsProblem deploying API REST springboot on Heroku
Good evening! I am trying to deploy a REST API on Heroku, but I come across the following error: [] [ERROR] Failed to execute goal org.apache.Maven.plugins: Maven-Compiler-plugin: 3.8.1: compile…