[Solved] Keeping composer.json updated and maintained

You have one central, very wrong sentence: e.g. what do i do when my composer.json says “require”: { “php”: “>=5.3.3”, “symfony/symfony”: “~2.4”, but downloads php 7.4 and symfony 4.3 instead? is this ok? Or do i ineed need to maintain my composer.json file? Wrong, Composer will not install any version of PHP, but will warn … Read more

[Solved] Can I fork a forked repo to get access to it, where the original repo is private?

Can any of my friends fork and give me the access. Can I fork the repo, which they forked already? Not using GitHub’s forking feature: Private forks inherit the permissions structure of the upstream or parent repository. For example, if the upstream repository is private and gives read/write access to a team, then the same … Read more

[Solved] Free source control tool to replace CVS – separate repository /working folders are required [closed]

This question indicates you should have no problems having a central Mercurial repository on a network share, given certain limitations: Can you ‘push’ to network share using Mercurial on 64bit Windows 7? However, individual users will still have local copies of the repository. Before ruling out non-shared folder methods, you should review Mercurial’s page on … Read more

(Solved) How do I force “git pull” to overwrite local files?

[*] ⚠ Warning: Any uncommitted local changes to tracked files will be lost. Any local files that are not tracked by Git will not be affected. First, update all origin/<branch> refs to latest: git fetch –all Backup your current branch (e.g. master): git branch backup-master Jump to the latest commit on origin/master and checkout those … Read more

(Solved) How do I rename a local Git branch?

To rename a branch while pointed to any branch: git branch -m <oldname> <newname> To rename the current branch: git branch -m <newname> -m is short for –move. To push the local branch and reset the upstream branch: git push origin -u <newname> To delete the remote branch: git push origin –delete <oldname> To create … Read more

(Solved) What is the difference between ‘git pull’ and ‘git fetch’?

In the simplest terms, git pull does a git fetch followed by a git merge. git fetch updates your remote-tracking branches under refs/remotes/<remote>/. This operation is safe to run at any time since it never changes any of your local branches under refs/heads. git pull brings a local branch up-to-date with its remote version, while … Read more

(Solved) How do I delete a Git branch locally and remotely?

Executive Summary $ git push -d <remote_name> <branchname> $ git branch -d <branchname> Note: In most cases, <remote_name> will be origin. Delete Local Branch To delete the local branch use one of the following: $ git branch -d <branch_name> $ git branch -D <branch_name> The -d option is an alias for –delete, which only deletes … Read more