Questions tagged as 'git'

2
answers

How to add an empty directory in a remote git repository?

I have a PHP application that needs to upload photos to a remote directory, but this directory needs to be created previously in the repository in order to upload those files. But when I send this empty directory, the repository does not reco...
asked by 10.05.2014 / 06:39
2
answers

How to "transform" a specific commit into a branch?

I would like to get a specific commit and turn it into a blank. Is there any way to do this in Git ?     
asked by 16.02.2016 / 15:04
2
answers

Inside Visual Studio 2015 how to reverse / undo commit in Git?

I have a commit made by a developer in the remote Git repository hosted in VSTS that needs to be rolled back. From Visual Studio, without going to command prompt how do I reverse the commit?     
asked by 23.08.2017 / 21:20
2
answers

"Nothing to commit" after failed authentication

I have a question regarding git. Namely when we failed authentication, the commands and actions I took were: Change in% with% command ficheiro.c command git add . authentication request failed authentication Repeat th...
asked by 31.08.2017 / 18:16
1
answer

Ignore all files except a specific one in GIT

I want to ignore everything from the "assets" folder except for the "xmutarn.js" file, so I tried .gitignore : !assets/script/xmutarn.js /assets But it does not work, how can I resolve it? My .gitignore looks like this: ## Files to ig...
asked by 18.10.2015 / 21:08
2
answers

Configuring GitHub [closed]

I would like help with how I configure GitHub on my Windows 10 32bit Operating System machine to upload my projects.     
asked by 03.08.2017 / 21:13
2
answers

How to delete all untracked files at once in git?

Running git status in a folder: On branch master Changes to be committed: (use "git reset HEAD <file>..." to unstage) new file: b.txt Changes not staged for commit: (use "git add <file>..." to update what wil...
asked by 30.12.2017 / 16:00
1
answer

how to undo "git checkout" of a specific commit and return to the last commit I made before checkout

I need to go back to the environment that was before I performed git checkout id_commit but when I run git log no longer appear the commits that I performed after the checkout . In the remote repository are all the push push I gave, how...
asked by 11.04.2018 / 17:53
1
answer

Repository Synchronization - GIT

Well, I'm working on a project in college and I had some issues with using git when syncing a repository. More precisely, I received the following usage instructions: The master branch is the primary and should never receive a test / unneces...
asked by 26.11.2016 / 02:17
2
answers

Git, how to move file or folder to another repository while retaining history?

I have 2 repositories:    / var / www / project       / var / www / project_disabled I have a file in a specific folder inside my project repository and I want to move this file with all your git history from the project repository t...
asked by 31.01.2018 / 15:53