Questions tagged as 'git'

1
answer

Project in git for macOS and Windows

I have a workstation at home under macOS, and then a laptop under Windows. I have started working with git to be more productive, but the problem has been when after creating a web project in the imac with npm using bootstrap, font-aweso...
asked by 18.03.2018 / 03:13
3
answers

How to upload a project to a repository different from the one that was cloned?

I have a project to clone from a git repository, now I want to upload it to my github account to work it from there, the question is: how do I upload it to a new git server? I tried to add it but it always redirects me to the old server     
asked by 16.12.2017 / 02:42
1
answer

download a specific tag from a git repository

Perform a download to the server with the following command git clone --branch tag_1 mi_url but I was asked to install the tag_2 , check the tags that are running the command git tag -l I got the tag listing and if it was, my que...
asked by 12.07.2017 / 14:50
2
answers

. gitignore does not work ignoring a subfolder of an ignored folder

I have tried to implement the solutions of: link without success. With the following in the gitignore , it does not ignore any subfolder or node_modules, example of my file:   ! node_modules /       node_modules / *      ! node_mod...
asked by 16.05.2017 / 20:58
1
answer

File pack in excessively large repository

Recently I cloned a repository that contains a few Python files and Jinja templates, but when I checked the size of the repository I realized that it has more than 130 megabytes. I checked the directory and found in .git\objects\pack a...
asked by 11.05.2017 / 18:42
1
answer

PHP composer, use of require tag + hash

I'm trying to install the vendor of an application and I have a slightly strange error:    Installation request for sg / datatablesbundle   dev-master # 73ac0ed0ba5adbfe0139b19e1f1c073f4e4c120a - > satisfiable by   sg / datatablesbundle [d...
asked by 07.02.2017 / 08:01
1
answer

Remove from the diff on github sensitive data

I want to delete sensitive data that comes out in the diff when comparing the commits in github, for x reasons I put a sensitive data in a field, and after changing it and pushing it, this data keeps coming out in the commit history as part of a...
asked by 13.10.2016 / 13:11
1
answer

Check if a directory is a git repository

I'm doing a small project with git and PHP through the library GIT.php , however I do not know what command to use, or how I can check if a directory is a repository. I have tried to use git rev-parse <path> but I have not b...
asked by 10.06.2016 / 17:29
1
answer

Github does not allow me to push

I have been using github recently and until now I had become accustomed to every time I wanted to upload new files or changes of files to my repository, simply put everything inside a directory, then put: -git add * -git commit -m "modificacio...
asked by 24.08.2016 / 19:23
1
answer

To what is the error (non-fast-forward) failed to push some refs

   To link ! [rejected]   gh-pages - > gh-pages (non-fast-forward) error: failed to push some   refs to ' link ' hint: Updates   were rejected because the tip of your current branch is behind hint:   its remote counterpart. Integrate the re...
asked by 26.04.2016 / 18:35