Version Control

Version control, also known as revision control or source control, is the management of changes to documents, computer programs, large web sites, and other collections of information. Changes are usually identified by a number or letter code, termed the "revision number," "revision level," or simply "revision." Version control systems (VCS) most commonly run as stand-alone applications, but revision control is also embedded in various types of software such as word processors and spreadsheets, and in various content management systems. Revision control allows for the ability to revert a document to a previous revision. Git, a widely-used VCS, has its own topic; other popular systems include CVS, Subversion, Team Foundation Server (TFS), Visual SourceSafe (VSS) and Perforce.

Share tech news, updates, or what's on your mind.

Sign up to Post

Is it necessary to do a Git snapshot when we want to have a copy of our code base for our stable website? I had posted a question here about *how* best to create a Git snapshot, but I didnt ask *why*. I got to thinking after that... our web host has daily backups on the server of our entire site, and if anything goes wrong or we push some code from Github to our live site and it breaks something, couldnt we just have our web host restore all the files from the server backup to a date before we screwed things up? I know there would then be an issue of how to get our Github repo reverted back to that date and not lose all our subsequent changes, but maybe thats a better approach then trying to schedule snapshots of our stable site. I'm not sure, though, so Im looking for opinions here.
0
Learn Ruby Fundamentals
LVL 19
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Hi,

In Git, how do I:
-sync only certain files
-sync from different repos but in 1 folder, f.e.
Folder1\Folder2
Folder1\Folder3
Folder1\Folder4

Sync full folder 1 to repo1 but only subfolder 3 to repo2
-auto sync = autopull, is it only possible via scheduled task (Windows, Powershell)?

J
0
Microsoft Project and a web API?

I see Project has many more features than when I last worked with it, years ago. But, does it have an API?

It would be great to be able to build Project into a large solution, and this would be possible, if I can manipulate Project data externally.

Also, what other similar tools have such capabilities as Project? I do recall,  when using it, if you have a need to go outside their features, it was challenging. But this was many years ago.

Thanks
0
Does a hyphen - matter in a folder name with Git? Git will not track any changes in a new folder we have made, even though it is not gitignored.
0
I have Git installed on my Windows 10 PC, and have a fairly basic understanding on how to use it.  However, when I attempted to publish a project the other day, I learned that it wasn't actually configured with my personal github account. It was instead configured with an account that I'd set up for one of my client's projects that I worked on a few years ago.  I know this not only because I remembered it, but because even though the project seemed to be have been successfully published to a repo, .. it never actually showed up in my account.  It only showed up in my account when I installed and used "Github Desktop" to publish (configured with my personal Github account credentials).  

How and where can I change the login credentials for the command line version of Git that I have installed?  Should I uninstall and re-install it?  Or is there an easier way?

On a related note .. when using the command line version of Git, how do I create a new repository or specify which repository I want to publish a project to?  

Thanks,
- Yvan
0
Hello Experts,
Through SourceTree, I have created a new GIT branch (let us call it temporary branch) from a Feature Branch. When I push something to the Feature Branch, I expect the temporary branch to track the Feature Branch and notify me that there are commits to be pulled. For some reason, I do not want to merge the temporary branch to the Feature Branch for some time, but like to have all the latest changes in the Feature branch pulled on-to temporary. Can  you please let me know if this is possible?
0
When we push all changes in master branch to our live website, we'd like to first take a "snapshot" of the live site code Git-wise so we can immediately revert if something goes wrong with the newest push. Whats the best way to do that?
0
Dear Experts
We have software development resources 3 users we have asked them to do development on the development server once the changes are accepted then they can commit to the production server. we are using BitBucket repository for version control, have following doubts
Production server administrator privileges of the application is disabled but development server  administrator credentials are enabled so that they develop, in this case is it recommend project manager will be as admin for the Bitbucket and once the developer develops and testing is done and user is accepted from the development server then project manager will execute the commit changes so that production server is updated, please suggest the best practice
0
I created an initial /trunk  /tags  /branches directories in new remote svn repository.  svn revision is 1.
I imported professional medium size c/c++ project into the /trunk folder.  Now, svn revision is 2.
I tagged the imported project.

Now, I need to fix a bug.  My plan is to checkout from tags.  Fix the bug.   Then, how will I commit?  Commits aren't allowed on tags.
0
I was installing Github Lab on my desktop but I forgot to check the command line option. How would I go back and fix it?
0
Announcing the Winners!
LVL 19
Announcing the Winners!

The results are in for the 15th Annual Expert Awards! Congratulations to the winners, and thank you to everyone who participated in the nominations. We are so grateful for the valuable contributions experts make on a daily basis. Click to read more about this year’s recipients!

Hi,
There is a git tag name that i have for a repo. I want to name on which branch it was created.
how to do it ?

Thanks
0
Backing up a WordPress site to Bitbucket

I have a brand new WP site at A2 Hosting and hope to back up the site in its pristine condition, as my first code commit. That lets me easily see what changes I have made, and help me in the I changed something I should not have changed.

What parts of a WP site get backed up?

What parts of a WP site DO NOT get backed up?

How do you suggest I approach this...A2 Hosting > BitBucket?

Thanks
0
I just wonder is there anyone have experience to use git system for network drives?

I have a team and we're working on a sharedrive on network but the files are ASCII files and each members made some modificiation on files and it's hard to track what's the changes and etc. is there any way to see History, Pull, Push and Branch options on files.

Any idea would be grateful.

Thank you.
0
In my application Splash Screen loads at the same time with my startup form. I don't know what is causing that my splash screen vb code like below. And also i took and screenshot from application settings.

Option Explicit On
Option Strict On

Public NotInheritable Class SplashScreen1

    'TODO: This form can easily be set as the splash screen for the application by going to the "Application" tab
    '  of the Project Designer ("Properties" under the "Project" menu).


    Private Sub frmSplashScreen_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        'Set up the dialog text at runtime according to the application's assembly information.  

        'TODO: Customize the application's assembly information in the "Application" pane of the project 
        '  properties dialog (under the "Project" menu).

        'Application title
        If My.Application.Info.Title <> "" Then
            ApplicationTitle.Text = My.Application.Info.Title
        Else
            'If the application title is missing, use the application name, without the extension
            ApplicationTitle.Text = System.IO.Path.GetFileNameWithoutExtension(My.Application.Info.AssemblyName)
        End If

        'Format the version information using the text set into the Version control at design time as the
        '  formatting string.  This allows for effective localization if desired.
        '  Build and revision information could be included by using the following 

Open in new window

0
Hi,
I have performed mvn release:prepare release:perform.
And a tag got created. I am using git and phabricator
Now i had to make some minor changes to the code. But dont want to create another tag unnecessarily.
So can i make the earlier tag point to the new code ?
The tag is important because that is how the build system in our office works...
But each time i make some change for deployment i dont want to create a new tag. and somehow make the older tag point to new code

Please suggest how to do it. and any alternatives ?

Thanks
0
Hi,
I have noticed sometimes whenever i do a git pull.
The editor will open up for merging with the default message :
Merge branch 'branch-name' of 10.1.5.12:app-portal into 'branch_name'
And i unnecessarily end up creating a new commit.

I dont know why this is happening ?
Ideally when i do a git pull it should just pull out the changes and not merge something...
Moreover why this message is appearing in the commit ?

Thanks
0
I just started using Visual Code Studio. A co-worker and I are working on a project together in which he will work on certain sections of the code and I will work on others.

We want to be able to "check out" a section of code, work on it locally and then post it up to be merged into the master code (upon approval).

I have seen ways to do what using github command lines. But is there a way to do that directly from Visual Code Studio?

What I'm looking for is this type of flow:

  • Start with the master code.
  • Each of us brings down files to our local machine to work on.
  • Our locally changed files are then staged to be uploaded.
  • The changes are reviewed and agreed upon.
  • The master branch is updated.

What I am looking for is a set of simple instructions for how this type of "checkout" procedure can be most easily accomplished and ideally from within Visual Code Studio itself.

Thanks.
0
Hello, I am in the process of implementing Acronis Snap Deploy in my environment and am wondering what other experts have done for version control of their master/base images?
0
I need whatever is in master branch to now be in my test branch named RM.

I definitely do not want to merge RM to master... I need it to be the other way around.
0
Fundamentals of JavaScript
LVL 19
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

Hi,
I have seen two repo management tools that uses git.
One is phabricator and other is github
whats the difference between the two and what are the pros and cons of each
Which one to use when ?
Does one has some specific benefits over the other ?
Thanks
0
We currently host Git on our sandbox server where we (2, sometimes 3 people if we hire a temp contractor) collaborate on the code for our website. I'm new in this position of backend web dev, inheriting the position from our long time backend dev who moved on. I *was* the head IT guy but now I'm trying to figure all this out as part of my new job.

Is there a benefit to using GitHub as opposed to just having Git installed on our sandbox server?
0
Please provide reference(s) that git doesn't require system administration.

Earlier today I asked question is there a version control system that doesn't require system administration.  
Expert answered Git.

I could google this information.  Please provide some links that confirm that git doesn't need system administration.
0
From svn book,

"Unless you can outsource the administration of your version control system to a third-party, you'll have the obvious costs of performing that administration yourself"

Doesn't every version control system require administration ?
0
Is Tortoise SVN Client included with Windows File Explorer shell?  Or Tortoise SVN Client needs to be installed first, then it can be accessed from File Explorer shell?

When I right-click from File Explorer I don't see any svn commands, like checkout.  Is it because we haven't installed subversion in a server yet.
0
How can I edit two or three files in Github Enterprise and put them all into one pull request?
0

Version Control

Version control, also known as revision control or source control, is the management of changes to documents, computer programs, large web sites, and other collections of information. Changes are usually identified by a number or letter code, termed the "revision number," "revision level," or simply "revision." Version control systems (VCS) most commonly run as stand-alone applications, but revision control is also embedded in various types of software such as word processors and spreadsheets, and in various content management systems. Revision control allows for the ability to revert a document to a previous revision. Git, a widely-used VCS, has its own topic; other popular systems include CVS, Subversion, Team Foundation Server (TFS), Visual SourceSafe (VSS) and Perforce.

Top Experts In
Version Control
<
Monthly
>