About 50 results
Open links in new tab
  1. What is the difference between DAO and Repository patterns?

    Dec 18, 2011 · A Repository IS a Dao, since it allows you to access/persist data, but the repository has a more precise definition based on simulating interaction with a collection of data. This definition and …

  2. repository - git: how to rename a branch (both local and remote ...

    I have a local branch master that points to a remote branch origin/regacy (oops, typo!). How do I rename the remote branch to origin/legacy or origin/master? I tried: git remote rename regacy legac...

  3. Reset local repository branch to be just like remote repository HEAD

    Oct 27, 2009 · If you want to reset a local repository to be EXACTLY like the remote, you can do the following: # Reset all tracked files to match the remote branch git reset --hard origin/main #replace …

  4. How do I push a new local branch to a remote Git repository and track ...

    May 4, 2010 · Create a local branch based on some other (remote or local) branch: git checkout -b branchname Push the local branch to the remote repository (publish), but make it trackable so git pull …

  5. How is repository different from workspace? - Stack Overflow

    Dec 22, 2019 · The repository is essentially the .git hidden folder inside the working directory (workspace). The working directory (workspace) is essentially your project folder. Keep in mind these …

  6. Difference between repository and service? - Stack Overflow

    What's the difference between a repository and a service? I don't seem to grasp it. I'm talking about data access through a data access layer, typically with linq to sql. Very often i see repositor...

  7. How to determine the URL that a local Git repository was originally ...

    Oct 10, 2015 · I pulled a project with several forks on GitHub, but forgot which fork it was. How do I determine which fork I pulled?

  8. Download a single folder or directory from a GitHub repository

    How can I download only a specific folder or directory from a remote Git repository hosted on GitHub? Say the example GitHub repository lives here: [email protected]:foobar/Test.git Its directory str...

  9. How do I delete a local repository in Git? - Stack Overflow

    Oct 3, 2009 · Delete the .git directory in the root-directory of your repository if you only want to delete the git-related information (branches, versions). If you want to delete everything (git-data, code, etc), just …

  10. How do I change the URI (URL) for a remote Git repository?

    I had to do this on an old version of git (1.5.6.5) and the set-url option did not exist. Simply deleting the unwanted remote and adding a new one with the same name worked without problem and …