Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x

Git

133

Solutions

191

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 hope to post a sample application which displays a problem I am having and need to find what aspects I need to create for this. It would mainly be for posts on EE but could be used to share my code for other purposes.

Can you suggest one?

I create a GitGub account and use Git to put the latest version of my site to GitHub.

What if two people want to make an alteration to the code I post there? When someone makes a change, is there a way to auto-fork the repo?
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.

Experts, please let me know if there is any free client utility that I can use for GitHub Enterprise. I think SourceTree supports GitHub.com, but not GitHub enterprise, please correct me if I am wrong. For some reasons, GitHub Desktop version can't be used. Please let me know if there are any other utilities that I can use to connect to my office GitHub repository.
0
I am trying to install Magento2.2 on my iMac. The Installer gets to Success - as per attached BUT the admin directory is not there!!

I have the correct version of php; Apache etc... and am installing the version for my imac.
I have tried loads of other suggestions on the web with git & composer but getting nowhere.

I've assumed it was a permissions problem so set all to 777 to avoid any directory creation issues in the script.
I've tried to work through the install scripts but cannot see where it is creating the admin directory anywhere!

Any ideas or suggestions are very welcome!

Stephen
ee-1.png
0
Here is my curl request which works perfectly in Git Bash:

$ curl -u username:password --insecure -X GET --header 'Accept: application/json' 'https://172.17.13.3/api/v8.1/customers'

This request returns all the customers within my system using Rest API.

I have been searching on-line for weeks now and have found some information, done lots of testing and keep getting "System.ArgumentException" errors. But I am really struggling with the specific way to write the insecure get request above in a web-request inside my windows forms application. Any help would be greatly appreciated - thanks in advance!
0
Had a fun time developing a nice little plugin for colorwerx.net site this past week.
Displays color boxes based on hex color input.

Check it out git repo here: https://github.com/aderse/wp_advanced_color_boxes

I will be updating with a 'how-to-use' page soon.
4
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
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
Ask an Anonymous Question!
LVL 10
Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

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

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

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

Git

133

Solutions

191

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
>