Warning: you are leaving 1 commit behind, not connected to any of your branches

you can git cherry-pick bada553d if it’s just the one commit. You can also reference anywhere you’ve been by using the reflog: git reflog then use one of those commits: git checkout -b temp HEAD@{3} to checkout and make a branch temp from where your current commit was 3 “times” ago. It’s a bread crumb … Read more

Deleting an SVN branch

Sure: svn rm the unwanted folder, and commit. To avoid this situation in the future, I would follow the recommended layout for SVN projects: Put your code in the /someproject/trunk folder (or just /trunk if you want to put only one project in the repository) Created branches as /someproject/branches/somebranch Put tags under /someproject/tags Now when … Read more

TFS: Updating branch with changes from main

From Visual Studio, open Source Control Explorer: View | Team Explorer Select your Team Project from Team Explorer, expand it, and double click Source Control In the left-hand pane of Source Control Explorer, select your Team Project. In the right-hand pane, find your mainline branch, right-click and select Merge… In the Target branch drop-down, select … Read more

How do you maintain development code and production code? [closed]

Update 2019: These days, the question would be seen in a context using Git, and 10 years of using that distributed development workflow (collaborating mainly through GitHub) shows the general best practices: master is the branch ready to be deployed into production at any time: the next release, with a selected set of feature branches … Read more

Why am I merging “remote-tracking branch ‘origin/develop’ into develop”?

git pull is probably creating the commit. If you make a local commit and then run git pull after someone else pushes a commit up to the repository, Git downloads the other developer’s commit and then merges it into your local branch. How to avoid these merge commits in the future You could use git … Read more

git cherry-pick not working

Git is resolving the cherry-pick as a no-op — all of the changes introduced by that commit have been introduced by some commit on your current branch. (Or that’s what Git thinks, anyway.) Verify that the commit you are cherry-picking hasn’t already been merged somehow, as either a proper merge, rebase/cherry-pick, or piecemeal patch. (Use … Read more

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