Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

Git

131

Solutions

184

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

Going through a tutorial on PHP Symfony and at one point it suggests setting up a git repository. Here's my CLI sequence...

screenshot
This is supposed to be cake and ice cream. Navigate to the home directory, enter "git init" and then, BOOM.

Instead I get an error that says "the git command is not recognized..."

What am I missing?
0
On Demand Webinar: Networking for the Cloud Era
LVL 10
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

What is the connection between a Netbeans 8.2 (php) project and a remote git repository? There is no git information in the project properties. I understand using Team menu as described in the docs. The confusion is how is a project logically linked to a remote repo? When I use the Team menu, does that operate on the current project only? What if there are two projects open at the same time?

I have one large project that encompasses an entire server and all its inter-related sub-domains, and one smaller project that is a single sub-domain of the large project. I need to have the larger project connected to one remote repo (on bitbucket), and the smaller project connected to a different remote repo (also on bitbucket). The whole project-to-repo connection is unclear.

Assuming I have to open one project at a time to have different repo's -
when I use Team -> Remote -> Clone the dialog displayed is confusing (see attached image file). This is supposed to be a remote repository (right?), so why are the examples and the Browse button all assuming a local file on my hard drive? Shouldn't it be a url like https://bitbucket.org/.../file.git ?
Image1.png
0
Hi Experts,

I am new to Git and we use Bitbucket as a our Repo. I have a scenario based.

1) I have already taken a project i.e. Branch from Bitbucket and worked on it, for example
         
       
/c/Source/projectname (epic/xxx-119)

Open in new window


2) This Branch has now been pushed back to bitbucket and worked on by another developer

3) Meanwhile I continued working on specific files on my local copy or Branch while the other developer had been working on my pushed up branch

4) Developer has now finished and I need to pull down his work and merge with mine

what is the safest way to achieve step 4 without over writing those specific files?

Is it as easy as git bash from here---
==> c/Source/projectname (epic/xxx-119)

$ git checkout -b <branch name>
$ git pull origin <branch name>
$ git reset --hard origin/release/core


I feel this will overwrite my project.

alternatively... is it advisable to pull down the new branch onto a separate location on my drive and copy and paste only the files I need into my working folder

Kind Regards

Mike
0
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
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
Free Tool: Site Down Detector
LVL 10
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

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
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
Free Tool: ZipGrep
LVL 10
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

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
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

Git

131

Solutions

184

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
>