git

git

Can you do a "git checkout" of all files with a certain extension?

Question: I have something like the following when I use git status : Su rama está actualizada con «origin/master». Cambios para hacer commit: (use «git reset HEAD <archivo>…» para sacar del stage) modificado: .ftpquota modificado: recursos/.ftpquota modificado: recursos/contenidos/archivo.Default.html modificado: recursos/contenidos/archivo.PopUpView.html modificado: recursos/contenidos/archivo.js modificado: recursos/contenidos/archivo.php modificado: recursos/contenidos/archivo2.php modificado: recursos/contenidos/archivo.txt modificado: recursos/contenidos/archivo3.php …

Can you do a "git checkout" of all files with a certain extension? Read More »

Freeze part of a line in git

Question: There is npm's packadge.json, one of the modules in which is connected as a git repository with a tag. The problem is that the repository address must contain the username: “some-module”: “git+https://qwertiy@git.smth.com/some-module.git#1.2.3” ^^^^^^^_______________________________________ у каждого своё ^^^^^____ версия меняется Is there some way to configure git to ignore the …

Freeze part of a line in git Read More »

git – Rolling back an intermediate commit

Question: There are 5 commits. The changes in commit 3 were wrong. How to rollback changes so that progress of 1, 2, 4, 5 commits is saved? Answer: You need to git revert commit3-SHA changes made in the 3rd commit: git revert commit3-SHA

Throws errors in Git

Question: I started getting familiar with Git. I am creating a repository to track changes in my project. in the following way. git init git config –global user.name “Your Name” (вписал, что надо) git config –global user.email you@example.com Then I created a .gitignore file, displayed and committed all changes. Then …

Throws errors in Git Read More »

Submitting a branch from a Git repository to an SVN repository

Question: Is it possible to push a branch to a remote SVN repository from a local Git repository? I am currently working with a git repository in several branches. $ git remote -v origin git@mysite.com:repo.git (fetch) origin git@mysite.com:repo.git (push) $ git branch -a master * develop remotes/origin/master remotes/origin/develop There was …

Submitting a branch from a Git repository to an SVN repository Read More »

Scroll to Top
AllEscort