FAQ

IndexTagsArchivesAbout
  • How do I clone a job in Jenkins?

    2022-08-06

    Question Jenkins has the Gerrit Plugin in place so that when we do check-ins to Gerrit, Jenkins performs a build and if it succeeds, then the modification in Gerrit is verified. If the build fails then it is not. My understanding is that this is accomplished through jobs set up in Jenkins. We have now created a new branch (git) and I guess I need to clone the existing jobs pointing to the other branch so that this same workflow occurs and builds are performed on every commit.…

    #git

  • How do I clone into a non-empty directory?

    2022-08-06

    Question I have directory A with files matching directory B. Directory A may have other needed files. Directory B is a git repo. I want to clone directory B to directory A but git-clone won't allow me to since the directory is non-empty. I was hoping it would just clone .git and since all the files match I could go from there? I can't clone into an empty directory because I have files in directory A that are not in directory B and I want to keep them.…

    #git

  • Is there a standard naming convention for git tags? [closed]

    2022-08-06

    Question Closed. This question is opinion-based. It is not currently accepting answers. </div> Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 9 years ago. The community reviewed whether to reopen this question last year and left it closed: Original close reason(s) were not resolved Improve this question I've seen a lot of projects using v1.2.3 as the naming convention for tags in git.…

    #git

  • How do I merge my local uncommitted changes into another Git branch?

    2022-08-05

    Question How can I do the following in Git? My current branch is branch1 and I have made some local changes. However, I now realize that I actually meant to be applying these changes to branch2. Is there a way to apply/merge these changes so that they become local changes on branch2 without committing them on branch1? Answer Since your files are not yet committed in branch1: git stash git checkout branch2 git stash pop or…

    #git

  • How to rebase local branch onto remote master

    2022-08-05

    Question I have a cloned project from a master branch from remote repository remote_repo. I create a new branch and I commit to that branch. Other programmers pushed to remote_repo to the master branch. I now need to rebase my local branch RB onto remote_repo's master branch. How to do this? What commands to type to a terminal? Answer First fetch the new master from the upstream repository, then rebase your work branch on that:…

    #git

  • Project vs Repository in GitHub

    2022-08-04

    Question In GitHub, what is the conceptual difference between a project (that can be created inside a repository) and a repository? I've seen several similar questions (here, here and here) in SO, but none of them explains what is a GitHub project, what is a GitHub repository and when to use each one of them. I would appreciate if someone can explain each term, and provide an example of when to use/create each one.…

    #git

  • Comments in .gitignore?

    2022-08-03

    Question Can you write comments in a .gitignore file? If so, should the line be preceded with a # or some other indicator? Answer Yes, you may put comments in there. They however must start at the beginning of a line. cf. http://git-scm.com/book/en/Git-Basics-Recording-Changes-to-the-Repository#Ignoring-Files The rules for the patterns you can put in the .gitignore file are as follows: - Blank lines or lines starting with # are ignored. […] The comment character is #, example:…

    #git

  • «
  • 96
  • 97
  • 98
  • 99
  • 100
  • »

©2023 hugo-notepadium-mod

CC BY-NC-SA 4.0 | RSS

Powered by Hugo and the Notepadium-mod

^ TOP ^