Git

130

Solutions

182

Contributors

Git is a version control system for software development. It is a distributed revision control system with an emphasis on speed, data integrity, and support for distributed, non-linear workflows. Git was initially designed and developed for Linux kernel development. As with most other distributed version control systems, every Git working directory is a full-fledged repository with complete history and full version-tracking capabilities, independent of network access or a central server.

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

Sign up to Post

I'm new to, and using Git. I have my remotes/origin branch of "master" that contains all production-ready code.

From "master", I create a new local branch called "Bug Fixes".

When I try to push code changes in Bug Fixes back to "master", I get this error every time:

Error encountered while pushing to the remote repository: Not a valid reference 'origin/master'

Maybe I'm not using this correctly? Can someone please advise?
0
Free Tool: Subnet Calculator
LVL 9
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

I moved a bunch of smarty template files to a sub directory. When I issue git status it shows the new directories but also shows the old files deleted.

Is it safe to issue "git rm directory/oldfile.tpl" then "git add directory/directory2/newfile.tpl" ?
0
Hi, I'm using nunjucks, so every time I use gulp nunjucks, every page gets rewritten. So GIT sees that as a modification, and lists them as modified.

Just to be clearer, I have the GIT repo as the entire folder. Within the folder I have> pages, templates, templates/partials, SCSS, CSS, img, and also the pages that result from a gulp nunjucks.

I think what I want is to exclude those pages, the pages that are created, because they all get written again with the command.

Does any of this make sense? Should I put them into a different branch or something? I'm really new at GIT. Thanks for any and all advice.
0
I am the only one with Admin rights to BitBucket and want to be sure, for the moment, only I can merge a Pull Request.

Please explain how to configure this...

Thanks
0
I just need to be alerted (via email) when a Pull Request is created.

How?

Thanks
0
I am using Bitbucket to store our source code for the website. My plan is to push the code from bitbucket to the server so that i don't have to log in to the webserver each time a change in the code is made. I am completely new to this and i'm having trouble finding the information that i need. I've looked at pipelines and webhooks. I think that webhooks is what i need to peform this action although im not sure if it is even possible.

Can someone tell me what needs to be done to make this happen?
0
Hello

Let's say i narrow the language in github search. I further want to specify a string to search for in all the repos available. Possible? How?

thanks
0
can we  run a script automatically when a developer commits a change into GIT
best way to run this script. kindly help.
0
Hi guys,

Although I find it hard to believe that what I'm looking for even exists, I'll still try my luck.

Is there any Linux Based IDE with native support for bash scripting?
(I don't only mean things like syntax highlighting but also auto completion and etc.) and preferably with git support.

Is there anyway to get a compiled bytecode from a bash script? I know about SHC but it doesn't really help becasue reversing it is way to easy - there's already a ready shell script to reverse the SHC compilation called UNSHC.
0
I want to know how to edit a comment in git after commit has been pushed , the exact commit number is available with me, I am using "ubuntu 16.04"   and git version is "GitLab Community Edition 8.14.0"
There are few more users who have done a commit after me on the same project.
I do not want other commit messages to be altered.
0
New feature and membership benefit!
LVL 9
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Hello,

I have a simple Hello World program written in Eclipse Neon.  I am integrating Eclipse with Github and it is giving following error. The Pull works from the repo.  What could be wrong here?

Thank you
Screenshot_1.png
0
We use Subversion where I work and we're moving to VS 2017 as well. So I stood up 2017 and committed a solution to source control. The problem is that I had forgotten to hook up Subversion (SVN) and so VS used Git instead (I guess that's the default). Anyway, it packed all my code into a couple Git-files and started asking me to make a Git account. I don't really want to make a Git account and although I did manage to find a copy of my code, I'd rather not port all of it over to a new project if I can avoid it. If anyone knows how I can just tell Git to go away and put my solution back the way it found it, I'd really appreciate it.

Thanks in advance.
0
I am planning to storing large video files on GitHub and is looking for guidance on how to optimize the user experience for downloading these large files off GitHub.

Is there any way to make the files smaller on the upload, cloning the repo, or if there was another platform/service we could consider ?

Thanks,
0
I've been using Visual Studio Online for some time with a TFS-style repository.  I've started a new job and am creating a new repository for our small time and want to use git for the first time.  I'm really struggling with importing existing projects to this git style repository and then sharing it with team members. Are there any primers out there for users like myself getting to grips with git in a visual studio environment?

In case it's relevant, we are using VS 2015.
0
I run below command

git checkout migrate-5456
git merge master 
git diff master --name-only --

Open in new window


I would like to understand what does '--' do here? Thanks
0
I made the mistake of making some changes on my local "develop" branch. This branch is set up so if I do "git pull," it will align with the "develop" branch on the main server.

After realizing my mistake, I went ahead and committed my changes, then I renamed the "develop" branch to management/server. My rationale was that I change the name of the branch, create a new branch called "develop" and do a "git pull" to grab all of the files from upstream and I would be good to go. When I did that, however, I got an error that said:

"There is no tracking information for the current branch. Please specify which branch you want to merge with."

Not sure what that meant, but I went online and found a command that seemed to do the trick. I did this:

git branch -u upstream/develop

Thing is, my interface says I'm still one commit ahead of upstream. I want to overwrite what I've got on my local "develop" branch with the "develop" branch that's sitting on the main server.

How?
0
Hi,
Please help me find out Github api to fetch the number of collaborators for a git repo.

Thanks
0
What values do I need to set in order that the event fires every midnight?

Octopus Fields for Scheduled Event
0
We use Gitlab as a repository tool and we have a  master branch and stable branch.when ever we want to build using jenkin, it has to taken from the master branch and if the build is successful it has to move to stable branch. How I should tag the master branch and how I should merge with the stable branch..let us know
0
Free Tool: SSL Checker
LVL 9
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Hey there!

We are a mainly Windows shop but I have installed a GitLab server VM and added an asp.net project to it.  
Our working directory is located on a mapped network drive on our file server.  We have made changes, staged, and committed those changes, and now I'm ready to move them to our inetpub\wwwroot folder on the test web server.  

What should I do to get my working directory over to the test web server?  Would that be a new branch?  I'm still having some trouble conceptually.  

Any help will be greatly appreciated.  

Thanks!
0
I am a developer and love Git. But I am writing a book and rely on Word. But Word files and Git are oil and water, since it can easily mangle the file and render it useless. Right?

How about using an RTF? Is that a format which works with source control?

I am sure a Notepad style of crude editor wold work, but I need some basic styling like font, bold, italics, etc.

What tool can I use on a Mac to write this book? I really want to be able to commit and push revisions and make my incremental changes viewable by me later.

Thanks.
0
Hi,

When i try to get forked project from github getting attached error in git hub when i selected github from drop down.

how to resolve this. please advise
intelligjEr.png
0
I am  a Git newbie, I have tried  to  follow  this  doc  below but I keep getting errors:

.1)Set your master branch to track the original repo's master branch.

        i.)  git checkout master
        ii.) git branch -u   matestream/master

Steps  Take
  I.)  I  went and checkout master  branch

     lugalaf@ITWEBDEV01 MINGW64 /c/Applications/TeamMates/teammates (master)
 II.)Then  I  issued second command and  got  the following error:-

$ git branch -u  matestream/master
error: the requested upstream branch 'matestream/master' does not exist
hint:
hint: If you are planning on basing your work on an upstream
hint: branch that already exists at the remote, you may need to
hint: run "git fetch" to retrieve it.
hint:
hint: If you are planning to push out a new local branch that
hint: will track its remote counterpart, you may want to use
hint: "git push -u" to set the upstream config as you push

Open in new window

.


When  I  do    git   remote  to confirm my  remote  branches, I found  the branch is already there.Anything I am missing please?

 
 $ git remote -v
        matestream      https://github.com/TEAMMATES/teammates.git (fetch)
       matestream      https://github.com/TEAMMATES/teammates.git (push)
        origin  https://github.com/FrankSD/teammates.git (fetch)
        origin  https://github.com/FrankSD/teammates.git (push)

Open in new window

0
When I try to build a VB.Net project,
I receive the following error:

The "GitVersion" task failed unexpectedly.
System.Exception: Could not find git.exe. Looked in PATH locations and various common folders inside Program Files as well as LocalPath.

Where do I set the GIT path as GIT is installed?
0
we have an angularjs2.0 application running on nodejs server.The version control tool we use is Gitlab. is it possible to Automate the integration of gitlab on AWS .Any url or steps to go through
0

Git

130

Solutions

182

Contributors

Git is a version control system for software development. It is a distributed revision control system with an emphasis on speed, data integrity, and support for distributed, non-linear workflows. Git was initially designed and developed for Linux kernel development. As with most other distributed version control systems, every Git working directory is a full-fledged repository with complete history and full version-tracking capabilities, independent of network access or a central server.

Top Experts In
Git
<
Monthly
>