What happens if I rebase after pushing?

Nothing would happen, but your next push would be not accepted. Unless you would force push. This would not break remote repository also, so it is also not that bad. Things go bad when you have more people using this repo. Rewriting history can cause a bit of chaos for others who will pull new … Read more

Freezing a Git branch

Christopher is right, tagging will help you do this. I recommend deleting the branch name too to make it a little harder for someone to checkout the branch and make edits. First, merge the branch into develop git checkout develop git merge –no-ff feature_1 Then checkout the branch git checkout feature_1 Then create a tag, … Read more

Prevent Git from changing permissions on pull

One config setting that might help here is core.sharedRepository, presented in the blog post “Preserving Group Write on Git Objects in a Collaborative Repository”: The solution turned out to be fairly straightforward. In the file .git/config, I added a line that read: “sharedRepository = group“, like so: [core] repositoryformatversion = 0 filemode = true bare … Read more

What’s a in the git command?

This answer was mostly derived from Git Pathspecs and How to Use Them. I haven’t copied everything over, so look into the link to dig deeper The pathspec is the mechanism that git uses for limiting the scope of a git command to a subset of the repository. If you have used much git, you … Read more

Gitlab – Project cannot be transferred, because tags are present in its container registry

Issue 33301 mentions: the only way to move a project with containers in the registry is to first delete them all. Meaning delete the container tags in the registry (not the repository or CI/CD) Navigate to sidebar menu Package->Container Registry on a project where Container registry is enabled Click on the button “Remove Tag” (since … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)